Example app demonstrating Percy's Java Selenium integration.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add CircleCI config (#12) Feb 19, 2019
src Update example app to use Java 8 version of the SDK. And show more pe… Dec 5, 2018
.gitignore Integrate percy-java-selenium from local JAR. Nov 9, 2018
LICENSE Fix copyright holder name in License. Nov 5, 2018
README.md Change example-percy-java-selenium to be a Java 8 project. Dec 5, 2018
dependencies.yml add dependencies.io configuration Nov 28, 2018
package-lock.json
package.json
pom.xml
run_snapshots.sh Change example-percy-java-selenium to be a Java 8 project. Dec 5, 2018

README.md

example-percy-java-selenium

Example app demonstrating Percy's Java Selenium integration.

This example app is an HTTP server that serves a fork of the TodoMVC Vanilla-ES6 (forked at commit c78ae12a1834a11da6236c64a0c0fb06b20b7c51).

It requires Java 8 and Maven >3.6.

The Selenium tests use ChromeDriver, which you need to install separately for your system. On Mac OS, you can use Homebrew:

$ brew tap homebrew/cask && brew cask install chromedriver

For other systems, see: https://sites.google.com/a/chromium.org/chromedriver/.

Building and running the app

To compile and build a jar containing our app:

$ mvn package

To run the server:

$ java -cp target/example-percy-java-selenium-1.0-SNAPSHOT.jar io.percy.examplepercyjavaselenium.App

Then visit http://localhost:8000 to see the app in action.

To run the tests:

$ mvn test

To install the Percy agent for this project, run npm install:

$ npm install

To run Percy snapshots, first set the PERCY_TOKEN environment variable, and then run:

$ ./run_snapshots.sh