Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WVAviator committed Mar 8, 2024
1 parent 0f4733d commit 465fbbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Variables can be defined statically as part of the suite or test configuration,
- Local Variables - These are defined at the test level under the field `define`. They are only valid for that single test. They can be useful for specifying complex structures to be used as matcher arguments, or they can be used to override suite variables for a single test.
- Environment Variables - These are pulled from your shell environment or from a [env file](./configuration/config.md#environment-variables). They are useful for synchronizing values in your tests that are also available to your server or other services.

## Variable Precendence
## Variable Precedence

Variables can be defined as any or all of the above types, and certain types take precendence over others. In order from highest precendence:
Variables can be defined as any or all of the above types, and certain types take precedence over others. In order from highest precedence:

> Local -> Extracted / Global -> Environment (.env) -> Environment (Shell)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/variables/env_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For example, if you have a `SERVER_URL` variable defined in your local environme
status: 200
```
However, since variables defined in your test suite take precendence, if you were to define the SERVER_URL in your suite configuration, that value will be used instead.
However, since variables defined in your test suite take precedence, if you were to define the SERVER_URL in your suite configuration, that value will be used instead.
```yaml
suite: User endpoint tests
Expand Down

0 comments on commit 465fbbb

Please sign in to comment.