Skip to content

wentwrong/experiments-with-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example of integration Jenkins TestCafe reporter and Jenkins TestCafe plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published