Skip to content

validate

rocketship validate

Validate Rocketship test files against the JSON schema

Synopsis

Validate one or more Rocketship test files against the JSON schema. This command checks test file syntax, structure, and configuration without executing tests.

When validating a directory, Rocketship uses the same discovery logic as the run command: - For a .rocketship directory, all *.yaml test files are validated (excluding .rocketship/tmp/) - For other directories, only files named "rocketship.yaml" are validated

Examples: rocketship validate rocketship.yaml # Validate a single file rocketship validate .rocketship # Validate all YAML test files in .rocketship rocketship validate ./tests/ # Validate all rocketship.yaml files in directory rocketship validate test1.yaml test2.yaml # Validate multiple files

rocketship validate [file_or_directory] [flags]

Options

  -h, --help   help for validate

Options inherited from parent commands

      --debug   Enable debug logging

SEE ALSO

Auto generated by spf13/cobra on 30-Nov-2025