Skip to content

Commit

Permalink
update readme and development.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Apr 12, 2024
1 parent c95e64c commit 9d54b09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
32 changes: 14 additions & 18 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@
npm t
```
## Test on different Playwright version
Install needed Playwright version (without saving to `package.json`):
## Run single test
Use the command below (use TAB after typing `test/` to autocomplete test path):
```
npx cross-env-shell PW=1.39 'npm i --no-save @playwright/test@$PW @playwright/experimental-ct-react@$PW'
npm run only test/<%test-dir%>
```
OR
Example:
```
PW=1.39 npm run pw
npm run only test/bdd-syntax
```
## Run tests on different Playwright version
Install needed Playwright version:
```
npx cross-env PW=1.39 npm run pw
```
Install corresponding browsers without clearing other versions:
Expand All @@ -38,25 +44,15 @@ npx cross-env PLAYWRIGHT_SKIP_BROWSER_GC=1 npx playwright install chromium
Run tests:
```
npm run test
npm t
```
## Test on different Cucumber version
## Run tests on different Cucumber version
Install needed Cuucmber version (without saving to `package.json`):
```
npm i --no-save @cucumber/cucumber@10
```
Run tests:
```
npm run test
```
## Run particular test
Use the command below (use TAB after typing `test/` to autocomplete test path):
```
npm run only -- test/<%test-dir%>
```
Example:
```
npm run only -- test/reporter-cucumber-html
npm t
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feel free to share your feedback in [issues](https://github.com/vitalets/playwri
Inspect the latest changes in the [CHANGELOG.md](https://vitalets.github.io/playwright-bdd/#/changelog).

## Contributing
Your contributions are welcome! Review [DEVELOPMENT.md](https://github.com/vitalets/playwright-bdd/blob/main/DEVELOPMENT.md) for the details.
Your contributions are welcome! Review [DEVELOPMENT.md](https://github.com/vitalets/playwright-bdd/blob/main/DEVELOPMENT.md) for playwright-bdd local setup and development.

## Sponsors
Great thanks to the sponsors for supporting playwright-bdd project ❤️ [Become a sponsor](https://github.com/sponsors/vitalets)
Expand Down

0 comments on commit 9d54b09

Please sign in to comment.