DDEV Webship-JS

Overview

This add-on integrates Webship-JS — a Playwright + Cucumber-JS Automated Functional Acceptance Testing framework — into your DDEV project. It allows you to write and run automated browser tests using Gherkin .feature files directly inside your DDEV environment.

 

Installation

ddev add-on get webship/ddev-webship-js

ddev add-on get automatically scaffolds the project with all required configuration files and a starter feature file, installs Playwright browsers, and restarts the DDEV environment.

 

Install Dependencies

With npm:

ddev npm install

With yarn:

ddev yarn install

 

Running Tests

With npm:

ddev npm run test:chromium      # Run all tests with Chromium
ddev npm run test:firefox       # Run all tests with Firefox
ddev npm run test:webkit        # Run all tests with WebKit

With yarn:

ddev yarn test:chromium         # Run all tests with Chromium
ddev yarn test:firefox          # Run all tests with Firefox
ddev yarn test:webkit           # Run all tests with WebKit

To run a specific feature file:

ddev exec npx cucumber-js --config cucumber.js tests/features/example.feature