-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update spec runner for full sass-spec coverage #1698
Conversation
nschonni
commented
Sep 5, 2016
•
edited
Loading
edited
- Update the spec runner from work in sass-spec
- Bump sass-spec tag to 3.3.6
Previously the runner only picked up the first level of the test suites. Now we pick up each folder as a Mocha suite, which increases the tests run from ~1K to 6K.
d41ee35
to
003819d
Compare
OK, I've rebase the commits. I think it's ready for review/landing now |
Nice one. I'm too fussed with specifics of the implementation as long as it works. If you're happy with it 🚢 |
Related #1705 |
3dbcf46
to
ac3a565
Compare
Nice one. I had originally cherry-picked this PR into mine. I figured there was value in having them separate incase mine needed to be reverted. 🚢 |
Yeah, I wanted to make sure they worked together |
Think I need to add back in the path replacements for Windows. I'll take a look tomorrow |
ac3a565
to
b27386d
Compare
Think this should fix the wall of Windows errors, but I'm not getting this 1) cli node-sass sass/ --output css/ should not error if output directory is a symlink:
Error: EEXIST: file already exists, mkdir 'C:\Workspaces\node-sass\test\fixtures\input-directory\css'
at Error (native)
at Object.fs.mkdirSync (fs.js:794:18)
at Context.<anonymous> (C:\Workspaces\node-sass\test\cli.js:582:10)
at callFnAsync (C:\Workspaces\node-sass\node_modules\mocha\lib\runnable.js:349:8)
at Test.Runnable.run (C:\Workspaces\node-sass\node_modules\mocha\lib\runnable.js:301:7)
at Runner.runTest (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:422:10)
at C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:528:12
at next (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:342:14)
at C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:352:7
at next (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:284:14)
at Immediate._onImmediate (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:320:5)
2) cli node-sass --follow --output output-dir input-dir should compile with the --follow option:
Error: EEXIST: file already exists, mkdir 'C:\Workspaces\node-sass\test\fixtures\follow\input-dir'
at Error (native)
at Object.fs.mkdirSync (fs.js:794:18)
at Context.<anonymous> (C:\Workspaces\node-sass\test\cli.js:623:10)
at callFnAsync (C:\Workspaces\node-sass\node_modules\mocha\lib\runnable.js:349:8)
at Test.Runnable.run (C:\Workspaces\node-sass\node_modules\mocha\lib\runnable.js:301:7)
at Runner.runTest (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:422:10)
at C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:528:12
at next (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:342:14)
at C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:352:7
at next (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:284:14)
at Immediate._onImmediate (C:\Workspaces\node-sass\node_modules\mocha\lib\runner.js:320:5) But I may just have something broken somehow when I reset my branch. Appveyor will tell the truth |
@nschonni I believe this is because our tests have side effects i.e. creating files on disk. Not all the tests clean up after themselves. So running tests after a failed run could end up with created files having not been removed. We need to address this because it can cause issues with the |
I'll see if I can find out what needs to change in the before/after test to see what might need cleaning up |
This originally caused issues because sass spec was in the test folder. As of #1698 sass spec is now an npm devDependency. Without the test folder published the node-citgm cannot execute our `npm test`.
Should return unquoted strings from function calls in interpolants