I've written 3 spec files, each of them is designed for separate modules. The folder structure is:
|-spec
|-module1.spec.js
|-module2.spec.js
|-module3.spec.js
Command jasmine-node --teamcity spec/
somehow runs only for the first module1.spec.js
file and skips the rest files.
Could anyone explain what could cause such a behavior?
I've figured out what was causing the problem - every spec file initiated it's own var app = express()
. The problem was that I've set app.listen(8001);
to the same port for every spec. Changing different ports for each spec fixes the issue