Testing
Prerequisites
- Ansible Environment.
- Podman - Primary test framework.
- Vagrant - Secondary test framework.
- Molecule Setup.
Execute Tests
Manual test steps
molecule create
molecule converge -- -v
molecule verify
scenario-name may be used in each step to execute non-default scenario.
Run through the default scenario or specified scenarios
molecule test # Runs default test - always destroy test containers.
molecule test --scenario-name=alt_test # Runs 'alt_test'.
Run through all existing Molecule scenarios
molecule test
molecule test --all
molecule test --all -- -v
molecule test --all --destroy=never # Run all tests - keep containers.
Debug molecule state
molecule --debug ${COMMAND} # Enable verbose debugging.