Skip to main content

Defining Test Suites as Text Files

This page showcases how to create and edit Test Suites with the CLI.

Just like other structures of Tracetest, you can also manage your Test Suites using the CLI and definition files.

A definition file for a Test Suite looks like the following:

type: TestSuite
name: Test purchase flow
description: Test a flow of purchasing an item
- ./tests/create-product.yaml
- ./tests/add-product-to-cart.yaml
- ./tests/complete-purchase.yaml
- testID # you can also reference tests by their ids instead of referencing the definition file

In order to apply this Test Suite to your Tracetest instance, make sure to have your CLI configured and run:

tracetest apply testsuite -f <testsuite.yaml>

If the file contains the property, the operation will be considered a Test Suite update.