Frequently Asked Questions¶
Is Docker required for running goodplay?¶
Although most people may use goodplay with Docker, it is absolutely fine to run goodplay without Docker and instead run on localhost or against remote hosts. Just keep in mind that you need to take care on your own for setting up and cleaning up your test environment in this case.
When is a test marked as passed, skipped, or failed?¶
An executed test always results in one of the following three test outcomes:
The following table shows the relation of Ansible task results of
non-test tasks and test tasks to the actual test result.
|task result||non-test task||test task|
|failed (ignore failed)||n/a||n/a|
These test results are collected for each host a task runs on. At the end of a test task the results are combined to the final test outcome according to the following rules in order:
- If the task has been failed on one or more hosts test outcome is
- If the task has been skipped on one or more hosts test outcome is
- Otherwise result in
- In case of a
global failedthis results in a failure with all subsequent tests being
- If all test tasks of a playbook are
skippedthis results in a failure.
Are test tasks free of side effects?¶
It depends. Test tasks are run in check mode (and thus without side effects) when supported by a module. If check mode is not supported, a module is run in normal mode which can result in side effects (depending on a module’s functionality).