tb test¶
Generates and runs tests. The following subcommands are available:
Command | Description |
---|---|
create [OPTIONS] | Creates a test in YAML format from a pipe datafile. |
run [FILES] | Runs all the tests in the project or specific tests passed as arguments. |
update [FILES] | Updates the test's expectations. |
tb test create¶
Creates a test in YAML format from an API endpoint.
For example: tb test create api_events --prompt "test for the customer id 42 and the event type 'purchase'"
.
Option | Description |
---|---|
--prompt TEXT | Passes a prompt to generate a customized test. |
--skip | Skips the test creation process and only generate the test file. |
tb test run¶
Runs all the tests in the project tb test run
or specific tests passed as arguments. For example: tb test tests/run api_events.yaml
.
tb test update¶
Updates the test's expectations. For example: tb test update api_events
.