A demo repository for exploring and running top web testing frameworks. This project supports the blog post Top 5 Web Testing Frameworks for 2024.
This repository demonstrates how to install and run End-to-End (E2E) testing frameworks using JavaScript. It includes preconfigured scripts for popular frameworks like Playwright, TestCafe, Nightwatch, Puppeteer, Selenium, and Cypress.
Ensure Node.js is installed on your machine. You can download it from Node.js Official Website.
git clone https://github.com/your-username/e2e-js-demo.git
cd e2e-js-demo
Run the following script to install all dependencies:
npm run build-npm
Install Playwright browsers:
npm run setup:playwright-browsers
Run tests in headless mode:
npm run test:playwright-headless
Run tests in headed mode:
npm run test:playwright-headed
Run the TestCafe test:
npm run test:testcafe
Run the Nightwatch test:
npm run test:nightwatch
Run the Puppeteer test:
npm run test:puppeteer
Run the Selenium test:
npm run test:selenium
Run the Cypress test:
npm run test:cypress
Feel free to submit issues or pull requests to improve this repository.