This repo contains example of integrating TestCafe Jenkins reporter with Jenkins TestCafe plugin.
Jenkinsfile contains code that runs tests in parallel distributed among two agents (windows and linux machine). After test execution, TestCafe generates artifacts (screenshots for failed tests and video). TestCafe Plugin for Jenkins will then aggregate the artifacts and show them on test page.
- Jenkins with Jenkins Testcafe plugin and Declarative Pipeline >= 1.2 (for parallel)
- two agents with:
- nodejs and npm
- git
- firefox browser
1. Create new Pipeline project in Jenkins
2. Choose "Pipeline script from SCM" and type link to this repo
3. Build
4. View attachments on test page