jeudi 9 juillet 2015

How to run several QUnit (node.js) test files using a single command?

Scenario

We are trying to use the Node.js QUnit Module aka qunitjs for our Server-Side Testing so that we can write one test and run it on both server and client e.g: http://ift.tt/1UDEMnO

When we run a single file using the command:

node test/my_test.js

It works as expected.

However, when we have more than one test in a /test directory and try to run all the files as a suite using the following command:

node test/*.js

only the first file (alphabetically) gets executed.

see: http://ift.tt/1G8YhJS

Question

How do we execute multiple test files with a single command?

We tried to dig through existing StackOverflow + GitHub Q/A for this but did not find any match. (any suggestions/help much appreciated!)

Aucun commentaire:

Enregistrer un commentaire