Question

I would like to know if it is possible to run nodeunit tests within Cloud9 IDE (like I run JUnit tests within IDE like Eclipse).

ps: I use a local Cloud9 IDE, not from c9.io

Thanks

Était-ce utile?

La solution

Yep, as described in this blogpost you can write your tests by postfixing your javascript files with _test (so, the tests for project.js will be in project_test.js). And they will run automatically when you save project.js (or the test file).

In the near future there will be a test panel available that lists all your unit test files so you can test your whole application with one click.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top