nikgoodley-ibboost / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

How to Execute Multiple .jstd Files With --conf Option? #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With the IntelliJ JSTestDriver plugin I can run execute multiple .jstd test 
files at the same time.  I like to split my tests into separate .jtsd files so 
that there is no memory sharing between my unit tests.  Grouping all of my 
tests into a single .jstd is unacceptable because tests can communicate with 
each other.

How can I specify the --config option to use multiple.jstd files?
I've tried using * and specifying multiple files delimited by commas etc. w/ no 
luck...

My only other option is to create a batch file that will have an entry for each 
.jstd file.  This is a bad solution because every entry opens up a new browser 
instance.

test>java -jar ..\lib\JsTestDriver-1.3.3d.jar --port 9876 --browser chrome.exe 
--reset --config suites\*.jstd --tests all --testOutput suites\testOP 

Original issue reported on code.google.com by bartw...@gmail.com on 30 Jan 2012 at 6:14

GoogleCodeExporter commented 9 years ago
I ended up having to create a perl script that finds all of the .jstd files in 
a directory and executes the JsTestDriver jar individually for each file.  

It would be nice to know if there was an easier way to do this.

Original comment by bartw...@gmail.com on 31 Jan 2012 at 3:39

GoogleCodeExporter commented 9 years ago
Not currently. The commandline system only works with one configuration file at 
a time.

Original comment by corbinrs...@gmail.com on 31 Jan 2012 at 3:47

GoogleCodeExporter commented 9 years ago
corbinrs,

Thanks for the information.  At least I know I wasn't missing something.  The 
Perl script works ok for me.

Original comment by bartw...@gmail.com on 3 Feb 2012 at 4:43