Skip to content

randavidovitz/JSCover-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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-server maven plugin.

Code Samples

The Java code samples driver path can be set with the system properties webdriver.ie.driver, webdriver.chrome.driver and phantomjs.binary.path 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 PhantomJS, FireFox, Chrome and IE 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.

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

Languages

  • JavaScript 50.4%
  • Java 46.2%
  • CSS 3.4%