Project based on the Percy Example for Java + Selenium.
- Open the terminal
- Clone the project:
git clone https://github.com/karlambsilva/demo-percy-java
- Go to the project folder:
cd demo-percy-java
- Run the following command:
make install
- Sign in or create a new account at percy.io
- Create a new project
- Copy the token variable
- Back to the terminal, run one of the following commands:
For unix:
export PERCY_TOKEN="<your token here>"
For Windows, Shell:set PERCY_TOKEN="<your token here>"
or PowerShell:$Env:PERCY_TOKEN="<your token here>"
- Execute the tests:
make test
Please check the official documentation for more details about the installation process.
- The site used on the tests is available on src/main/resources and deployed to GitHub Pages. Basically, there are 2 pages with some minor differences to evaluate the effectiveness of the tool: Regular page and page with minor changes;
- main is the base branch for the comparison, but there are 2 more branches: dev/percy-passing and dev/percy-failing (which points to the page with the changes)
- Comparison process take some time
- Take screenshot of a specific scope is not working.
- How to proper use the ignored regions?