Run template tests in the repository directory. See Test Structure for more details.
kbc template test run [template] [version] [flags]
This command runs tests for a specified template or all templates in the repository (if you do not provide the template
parameter).
If you provide template
but not the version
parameter, the default version will be used.
This command must be run in the repository directory.
It requires at least one existing project in a public Keboola stack defined in the environment variable KBC_TEST_PROJECTS_FILE
.
For example:
KBC_TEST_PROJECTS_FILE=./projects.json
This is an example of a projects file:
[
{
"host": "connection.keboola.com",
"project": 12345,
"stagingStorage": "s3",
"backend": "snowflake",
"token": "XXXX",
"legacyTransformation": true
}
]
--local-only <bool>
--remote-only <bool>
--test-name <string>
--test-projects-file <string>
--verbose <bool>
➜ kbc template test run --local-only
PASS keboola/my-template/0.0.1 one local
PASS keboola/template-2/2.0.0 one local
© 2024 Keboola