Skip to main content
Version: v4.5.0

stk-legacy test

Description

The stk test command tests whether the execution of your Stack's Templates and Plugins behave as expected.

The command does not test the functionality, semantics, and syntax specific to any programming languages or technologies in a Stack. The test only guarantees that the expected result of executing a Template or a Plugin is achieved. It does not show the behavior of the code and technologies adopted by a Stack.

How ​​it works?

You must create test cases for your Stack Templates and Plugins. When running the command, you can select specific Templates, Plugins, and test cases to run.

For more details, check the test Stacks section.

Parameters

ParameterDescription
stk-legacy test stackRuns all valid test cases of Templates and Plugins in a Stack.
stk-legacy test templateRuns all valid test cases from Templates in a Stack.
stk-legacy test template <template-name>Runs all valid test cases from a specific Template in a Stack.
stk-legacy test template <template-name>:<test-case-name>Runs the test with a test case and a specific Template from a Stack.
stk-legacy test pluginRuns all valid test cases for Plugins in a Stack.
stk-legacy test plugin <plugin-name>Runs all valid test cases for a specific Plugin in a Stack.
stk-legacy test plugin <plugin-name>:<test-case-name>Runs the test with a test case and a specific Plugin from a Stack.

Examples

Run all tests from a Stack:

stk-legacy test stack

Was this page helpful?