Skip to content

Commit

Permalink
Merge pull request #1751 from DataDog/wantsui/clarify-run-command
Browse files Browse the repository at this point in the history
Improve run.sh example for tests involving scenarios
  • Loading branch information
wantsui authored Oct 26, 2023
2 parents ba9c63f + 0f4840c commit e648e80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/execute/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
./run.sh tests/test_waf.py
```

If the test contains `@scenarios.SCENARIO_NAME` such as `@scenarios.integrations`, then the `./run.sh` needs to be adjusted to the following:

```bash
./run.sh SCENARIO_NAME tests/path_to_test.py

# Example: for @scenarios.integrations in tests/integrations/test_sql.py
./run.sh INTEGRATIONS tests/integrations/test_sql.py
```

## Run only one class, or one method

```bash
Expand Down

0 comments on commit e648e80

Please sign in to comment.