Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

timurstrekalov/jscoverage-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is no longer supported. Use Saga instead.

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