Hi everyone,
I'm starting to integrate funcunit in our building process, but I'm little bit confused about "How to output tests result running those tests with nodejs?"
I'm on Ubuntu 13.04 (64bit), latest JavascriptMVC (3.3), with latest phantomjs (1.9.1) installed, latest node installed (v0.10.17) and all npm packages needed as explained in the documentation and then I executed this command:
I'm starting to integrate funcunit in our building process, but I'm little bit confused about "How to output tests result running those tests with nodejs?"
I'm on Ubuntu 13.04 (64bit), latest JavascriptMVC (3.3), with latest phantomjs (1.9.1) installed, latest node installed (v0.10.17) and all npm packages needed as explained in the documentation and then I executed this command:
- node funcunit/node/run.js myapp/test.html
Everything is ok with that, every test passed and at the end the result are displayed.
However now i need to export that result as xml to be parsed with Jenkins (xUnit). The problem is that the command above doesn't seems to work adding:
- node funcunit/node/run.js myapp/test.html -out results.xml
If i try to execute instead
- ./js funcunit/open/phantomjs myapp/test.html
It execute all the tests but at the ends it will give me this java exception
- Exception in thread "Thread-89" org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: funcunit/coverage/coverage.json ......
and also give me
- kill: invalid argument -- "9"
followed by the usage of kill command.
What i can do to use nodejs + phantomjs + funcunit to export my results? Tnx in advance.