Skip to content

tntim96/JSCover-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samples for JSCover

Build Status

What you need:

To run all tests: mvn verify

Handling Drivers Not On Executable Path

Maven Plugins

The Maven plugins driver path can be with the systemProperties property in the pom.xml file. For more details see the configuration details for the jscover-server maven plugin and the jscover-file-system maven plugin.

Code Samples

The Java code samples driver path can be set with the system properties webdriver.edge.driver and webdriver.chrome.driver set either on the command line or directly in the Java code.

Java Code Samples

To run JUnit tests: mvn test

Server Examples In Multiple Browsers With Jasmine

The main class is WebDriverJasmineTestBase. Examples using FireFox, Chrome and MS Edge are here.

The examples use Jasmine and Jasmine's HtmlReporter.

Proxy Examples

General

Run interactive sample from JSCover's web-site in FireFox: WebDriverGeneralProxyTest

With QUnit

Run Underscore's online QUnit tests in FireFox: WebDriverUnderscoreProxyTest

JSCover Maven Plugin

To run the JSCover Server Maven Plugin: mvn jscover-server:jscover

To run the JSCover File Maven Plugin: mvn jscover-file:jscover

Note JSCover File Maven Plugin generates your coverage reports without ever running a server.

To merge the file and server reports above: mvn jscover-report:merge

To generate cobertura XML and lcov data for the merged report above: mvn jscover-report:format

See the configuration in the pom.xml.

Also see the JSCover-maven-plugin project.

About

Working samples of JSCover

Resources

Stars

Watchers

Forks

Packages

No packages published