Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Funcunit + NodeJS + PhantomJS, what about output?

$
0
0
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:
  1. 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:

  1. node funcunit/node/run.js myapp/test.html -out results.xml

If i try to execute instead

  1. ./js funcunit/open/phantomjs myapp/test.html

It execute all the tests but at the ends it will give me this java exception

  1. Exception in thread "Thread-89" org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: funcunit/coverage/coverage.json  ......

and also give me

  1. 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.




Viewing all articles
Browse latest Browse all 3491

Trending Articles