- Java (minimum 11)
- Maven 3
- Chrome, FireFox (gecko) and MS Edge drivers for Selenium 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-file-system maven plugin.
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.
To run JUnit tests:
mvn test
The main class is WebDriverJasmineTestBase. Examples using FireFox, Chrome and MS Edge 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.
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.