Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.25 KB

Purpose

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.

Reproduction

Requirements

  • Jenkins with Jenkins Testcafe plugin and Declarative Pipeline >= 1.2 (for parallel)
  • two agents with:
    • nodejs and npm
    • git
    • firefox browser

Steps

1. Create new Pipeline project in Jenkins

2. Choose "Pipeline script from SCM" and type link to this repo

pipelineFromSCM

3. Build

build

4. View attachments on test page

attachmentOnTestPage