KengoTODA / example-percy-java-selenium

Example app demonstrating Percy's Java Selenium integration.

Home Page:https://docs.percy.io/v1/docs/java-selenium-testing-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

On Windows, you can use Chocolatey:

$ choco install chromedriver

For other systems (or installation alternatives), see: https://github.com/SeleniumHQ/selenium/wiki/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

Running the tests

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

$ npm run test

About

Example app demonstrating Percy's Java Selenium integration.

https://docs.percy.io/v1/docs/java-selenium-testing-tutorial

License:MIT License


Languages

Language:Java 72.2%Language:HTML 15.2%Language:JavaScript 12.6%