openlayer tests command exports the test definitions (goals) for the current
Openlayer project as JSON. This is useful for bootstrapping or syncing a local
tests.json from tests defined in the platform.
Its delete subcommand removes tests in bulk, so you don’t have to delete them one
at a time in the UI.
Usage
Examples
Flags
openlayer tests delete
Archives — or, with --force, permanently deletes — the tests you select.
Archiving hides a test while preserving its result history, and can be undone from
the platform. --force deletes the test and all of its results, and cannot be
undone.
Tests are selected by the syncId you author in
tests.json, by the test’s platform id, or by name. Each flag is repeatable and
they can be mixed in a single command.
Examples
Flags
At least one of
--sync-id, --id or --name is required.
Selector resolution
Before anything is modified, every selector must resolve to exactly one test. If any selector matches nothing — or if a--name matches more than one test — the command
reports all of the problems at once and exits without removing anything, so a typo
can’t leave a partially applied deletion behind:
In non-interactive mode (
--output-mode ci, used by agents and CI pipelines)
the confirmation prompt cannot be answered, so pass --yes — otherwise the
command fails fast rather than hanging.