Skip to content

Commit

Permalink
docs(readme): add config for pytest.ini (microsoft#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujetter committed Oct 5, 2020
1 parent 779b44a commit 490b38c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ pytest --browser firefox
pytest --browser chromium --browser webkit
```

If you want to add the CLI arguments automatically without specifying them, you can use the [pytest.ini](https://docs.pytest.org/en/stable/reference.html#ini-options-ref) file:
```ini
# content of pytest.ini
[pytest]
# Run firefox with UI
addopts = --headful --browser firefox

```


## Fixtures
This plugin configures Playwright-specific [fixtures for pytest](https://docs.pytest.org/en/latest/fixture.html). To use these fixtures, use the fixture name as an argument to the test function.

Expand Down

0 comments on commit 490b38c

Please sign in to comment.