Skip to content

A Maven plugin to generate JavaScript coverage information using JSCoverage

Notifications You must be signed in to change notification settings

pietrom/jscoverage-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Maven plugin to generate JavaScript coverage information using JSCoverage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 87.9%
  • JavaScript 12.1%