Standalone tests
Standalone JSON or YAML files help you see the entirety of the spec and keep it in a separate, machine-readable format. They’re useful for:
- Complex test suites that need version control
- Automated test generation and processing
- Integration with CI/CD pipelines
- Sharing tests across projects
However, they make it harder to maintain strict parallelism with documentation, so consider your use case carefully.
Test specs in standalone JSON or YAML files use the following basic structure:
JSON
YAML
For comprehensive options, see
specification.
Example
Here’s an example test for performing a Google search and saving a screenshot of the results: