- Java (minimum 1.5)
- Maven 3
- InternetExplorer and Chrome drivers for Selenium and PhantomJS for the WebDriver examples. These should be on the executable path.
To run all tests:
mvn verify
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.
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.
To run JUnit tests:
mvn test
The main class is WebDriverJasmineTestBase. Examples using PhantomJS, FireFox, Chrome and IE are here.
The examples use Jasmine and Jasmine's HtmlReporter
.
Run interactive sample from JSCover's web-site in FireFox: WebDriverGeneralProxyTest
Run Underscore's online QUnit tests in FireFox: WebDriverUnderscoreProxyTest
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.