From 490b38cd3239515bff8d6db81f4b476f5b83c400 Mon Sep 17 00:00:00 2001 From: ujetter <57804795+ujetter@users.noreply.github.com> Date: Mon, 5 Oct 2020 18:25:50 +0200 Subject: [PATCH] docs(readme): add config for pytest.ini (#13) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 36f9ae9..ceaaa33 100644 --- a/README.md +++ b/README.md @@ -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.