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
Parameter | Description |
---|---|
stk-legacy test stack | Runs all valid test cases of Templates and Plugins in a Stack. |
stk-legacy test template | Runs 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 plugin | Runs 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
- Stack Test
- Template Test
- Plugin Test
Run all tests from a Stack:
stk-legacy test stack
1. Run all tests of the Stack's Templates:
stk-legacy test template
2. Run all tests for a specific Template:
stk-legacy test template template-name
3. Run the test with a test case and a specific Template from a Stack:
stk-legacy test template template-name:test-case-name
1. Run all Tests for Plugins in a Stack:
stk-legacy test plugin
2. Run all tests for a specific Plugin:
stk-legacy test plugin plugin-name
3. Run the test with a test case and a specific Plugin from a Stack:
stk-legacy test plugin plugin-name:test-case-name
Was this page helpful?