Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,19 @@ env = [
]
```

```toml
# pytest.toml / .pytest.toml
[pytest]
env = [
"HOME=~/tmp",
"RUN_ENV=test",
]
```

In `pytest.toml` / `.pytest.toml`, this pytest-native `[pytest]` table is an alternative to the plugin-specific
`[pytest_env]` TOML table described above. Both forms work there, so `pytest.toml` does not have to use
`[pytest_env]`.

Prefix flags modify behavior. Flags are case-insensitive and can be combined in any order (e.g., `R:D:KEY=VALUE`):

| Flag | Description |
Expand Down