You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently each CLI test for ITDE calls ITDE's API and the test logic investigates the results and side effects of the API calls in order to detect whether the CLI parameters have been handed and processed correctly. This has the following disadvantages
CLI tests require complex implementation
CLI test execution requires huge amount of resources and takes long
CLI tests are not very robust
The current ticket requests to enable CLI tests without needing to execute actual functionality in the API.
This could simplify CLI test cases and reduce test execution duration.
Idea
define a global environment variable <VAR>
when <VAR> is set then API does not execute actual functionality
however the mocked API allows to inspect parameters passed from CLI
The text was updated successfully, but these errors were encountered:
The environment variable points to a name of a python file/python function which contains the mock implementation of the API
This way, each test case can inject its own mock implementation
When we move the CLI tests from actually calling a binary to using click.testing.CliRunner, we can inject a function name via the environment variable
If we call a binary, we need to inject the name of a python file, because the function might not be available in the execution context.
For the starter-container based tests, we could use a default mock implementation which prints the parameters, because neither of the previous methods really work with it, except we include the mock implementation into the container itself.
Currently each CLI test for ITDE calls ITDE's API and the test logic investigates the results and side effects of the API calls in order to detect whether the CLI parameters have been handed and processed correctly. This has the following disadvantages
The current ticket requests to enable CLI tests without needing to execute actual functionality in the API.
This could simplify CLI test cases and reduce test execution duration.
Idea
<VAR>
<VAR>
is set then API does not execute actual functionalityThe text was updated successfully, but these errors were encountered: