Dockerize your TestCafe tests and integrate with Jenkins

Wait, we have a checklist

But, what does Docker images really do?

Let’s create our Dockerfile

Create and test your Docker Image

docker build -t testcafe -f docker/Dockerfile .
docker images -a
docker run -u root -v ${PWD}:/tests -it testcafe/testcafe chromium /tests/**/*.spec.ts
docker stop $(docker ps -qa --filter ancestor=testcafe)

Create your Jenkins file

Boot up Jenkins and Configure Test job

java -jar jenkins.war --httpPort=9090

Execute your first TestCafe job

--

--

--

Tech Lead Manager @Postman 🚀 | Space Movie Lover 🪐 | Coder 👨‍💻 | Traveller ⛰️

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Microsoft Xbox One Controller Driver for Windows

Weekly Digest 48/2021

Streaming Open Source Development on Twitch — Part 2

Good Practices: Terraform

[2018 New] Easily To Pass Cisco 500–260 Dumps PDF Vce Files Covers All Key Points

TryHackMe — Mr. Robot WalkThrough

AWS Lambda PHP via Run Time API

Enrich Solr Taxonomy 3.0 with RChilli & enrich.io’s Taxonomy 3.0

Enrich taxonomy for Solr search engine

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhinaba Ghosh

Abhinaba Ghosh

Tech Lead Manager @Postman 🚀 | Space Movie Lover 🪐 | Coder 👨‍💻 | Traveller ⛰️

More from Medium

Security & DevOps — authentication and authorization

Load Testing with Apache Jmeter

Jmeter with Ultimate thread group

[Spring Boot] Testing Apache Camel SEDA Endpoint

Cost-optimized dynamic JMeter distributed load testing infrastructure on AWS integrated with…