Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kwishna/playwright-runner-with-cucumber

Using playwright with test runner and cucumber integration
https://github.com/kwishna/playwright-runner-with-cucumber

allure-report cucumber-js playwright-typescript test-automation ui-testing

Last synced: 8 days ago
JSON representation

Using playwright with test runner and cucumber integration

Awesome Lists containing this project

README

        

# Playwright BDD Test

A UI automation using Playwright Test Runner intergrated with BDD Cucumber.js.

## Features

- BDD-style testing with Cucumber.js integration
- Multiple test projects: smoke, regression
- Parallel test execution
- Comprehensive reporting (HTML, JUnit, JSON, Allure)
- Environment-specific configurations
- Cross-browser testing support
- Screenshot and video capture on failure
- Trace collection for debugging

## Setup

1. Clone the repository
2. Install dependencies: `npm install`

## Running Tests

- Run all tests: `npm run pw:test`
- Run smoke tests: `npm run pw:smoke`
- Run failed tests: `npm run pw:failed`
- Run tests with specific tags:
- AND condition: `npm run pw:grep:and`
- OR condition: `npm run pw:grep:or`
- Single tag: `npm run pw:grep`

## Reporting

Generate and view test reports:
- `npm run pw:report`

## Configuration

- `playwright.config.ts`: Main configuration file
- `.env`: Environment variables (create this file locally)

## Project Structure
- `src/`: Test files using BDD cucumber.js
- `test/`: Test files without BDD cucumber.js
- `smoke/`: Smoke tests
- `regression/`: Regression tests
- `playwright-report/`: Test reports
- `snapshots/`: Screenshot comparisons

## Dependencies

- Playwright
- Cucumber.js (via playwright-bdd)
- Allure reporting

For more details, refer to `package.json` and `playwright.config.ts`.