tianxiangbing / js-test-driver

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

Coverage data not produced if source/test files are located in a directory above JsTestDriver.jar #218

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure JsTestDriver to use the coverage plugin:

(jsTestDriver.conf)
plugin:
 - name: "coverage"
   jar: "coverage.jar"
   module: "com.google.jstestdriver.coverage.CoverageModule"

2. Configure JsTestDriver to load JS files from a source directory that is 
above the directory containing JsTestDriver.jar:

(jsTestDriver.conf)
load:
 - ../js/common.js
 - ../tests/*.js

3. Run tests
java -jar JsTestDriver.jar --testOutput results --tests all

What is the expected output? What do you see instead?
jsTestDriver.conf-coverage.dat should be populated with coverage data. Instead, 
the file is empty and JsTestDriver reports "No lines of coverage found."

What version of the product are you using? On what operating system?
JsTestDriver 1.3.1, Coverage 1.3.1, Ubuntu 10.10, Java version 1.6.0_20

Please provide any additional information below.
Coverage data is generated successfully when source files are copied to a 
subdirectory (inside of the directory that contains JsTestDriver.jar, see 
config below).

(jsTestDriver.conf)
load:
 - js/common.js
 - tests/*.js

Original issue reported on code.google.com by lazd...@gmail.com on 30 Mar 2011 at 11:11

GoogleCodeExporter commented 8 years ago
Having the same issue with similar configurations
Any help with that?

Thanks
Gil

Original comment by g...@tikalk.com on 16 Sep 2013 at 3:20

GoogleCodeExporter commented 8 years ago
nope, sorry

Original comment by petersge...@googlemail.com on 16 Sep 2013 at 5:11