Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ For example to run the tests for Python 3.9:
tox -epy39
```

Generated BDD artifacts
-----------------------

The OpenAPI transformer can generate a shared request-plan database, recording
server, and feature corpus. Generated support artifacts live under
`tests/generated-test`, while features remain under `tests/{version}/features`.
The session-scoped pytest fixture starts and stops the replay server when the
normal test command runs:

```shell
./run-tests.sh
```

The adapter builds requests from the generated plans and points every SDK client,
including setup and undo calls, at the generated recording server. The SDK does
not need access to the spec repository or the transformer at test runtime.

To pass extra arguments to run the tests, you need to close `tox` arguments with `--`.
You can get more verbose information with the `-v` flag to `pytest`, filter the tests using the `-k` or
specifying the test full path. For example:
Expand Down
Loading
Loading