Commit 96f0bfb5 by Andrew Nesbitt

Merge pull request #457 from edds/update-test-runner

Update test runner to match sass-spec
parents b75da700 4f5ac736
......@@ -30,7 +30,7 @@ describe('sass-spec', function() {
if (sassSpecDirExists) {
var suitesPath = path.join(sassSpecPath, 'spec');
var suites = fs.readdirSync(suitesPath);
var ignoreSuites = ['todo', 'benchmarks'];
var ignoreSuites = ['libsass-todo-issues', 'libsass-todo-tests'];
suites.forEach(function(suite) {
if (ignoreSuites.indexOf(suite) !== -1) {
......@@ -43,10 +43,12 @@ describe('sass-spec', function() {
tests.forEach(function(test) {
var testPath = path.join(suitePath, test);
var inputFilePath = path.join(testPath, 'input.scss');
if (fs.existsSync(inputFilePath)) {
it(test, function(done) {
sass.render({
file: path.join(testPath, 'input.scss'),
file: inputFilePath,
includePaths: [testPath, path.join(testPath, 'sub')],
success: function(css) {
var expected = fs.readFileSync(path.join(testPath, 'expected_output.css'), 'utf-8');
......@@ -59,6 +61,9 @@ describe('sass-spec', function() {
}
});
});
} else {
it(test);
}
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment