forked from timurstrekalov/jscoverage-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (33 loc) · 1.11 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Generates coverage information about JavaScript files using JSCoverage.
As of this moment, you have to provide the path to jscoverage.
Supported formats are: csv, xml and simple console output.
Example config:
<plugin>
<groupId>com.github.timurstrekalov</groupId>
<artifactId>jscoverage-maven-plugin</artifactId>
<version>0.4.2</version>
<configuration>
<jsCoveragePath>jscoverage</jsCoveragePath>
<srcDir>src/main/javascript</srcDir>
<destDir>target</destDir>
<instrumentedSrcDir>target/src</instrumentedSrcDir>
<verbose>true</verbose>
<formats>
<format>xml</format>
<format>csv</format>
<format>console</format>
</formats>
<excludes>
<exclude>not-really-javascript.js</exclude>
<exclude>some-other-crap.js</exclude>
<exclude>**/*someAntPattern*</exclude>
</excludes>
<tests>
<test>target/TestAll.html</test>
</tests>
</configuration>
</plugin>
Instrumentation:
mvn jscoverage:instrument
Coverage report:
mvn jscoverage:coverage