I installed jasmine-node using npm. The structure of my project is as follows:
|-lib\ |-taxCalc.js |-spec\ |-taxCalc.spec.coffee |-taxCalc.spec.js |-src\ |-taxCalc.coffee
When I run jasmine-node from the root folder with the following command (for CoffeeScript):
jasmine-node --coffee --verbose spec Finished in 0.015 seconds 0 tests, 0 assertions, 0 failures
Same thing if I run the JavaScript version.
If I explicitly state that the tests for special files run fine:
jasmine-node --coffee --verbose spec/taxCalc.spec.coffee Tax calculation calculates tax Finished in 0.009 seconds 1 test, 1 assertion, 0 failures
The documentation says that the file names should end in "spec.js" or "spec.coffee", so everything looks fine.
PS I am running on Windows 7.
marisks
source share