Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--compilers only compile specs, should also compile source #901

Closed
nordhagen opened this issue Jun 18, 2013 · 1 comment
Closed

--compilers only compile specs, should also compile source #901

nordhagen opened this issue Jun 18, 2013 · 1 comment

Comments

@nordhagen
Copy link

I'm running mocha like this

mocha --reporter spec --compilers coffee:coffee-script --require should

I keep my specs in ./test and my source in ./src. Both are CoffeeScript. When I run mocha, the specs are compiled correctly, but the source seems cached or not run through the CoffeeScript compiler at all. I can verify this by introducing an error in the source code and re-run the tests, but they will still pass.

Funny side note: When using --watch test, the source files are also watched, even though they are not in the test directory, but they are still not compiled before the specs are run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants