Molecule "scenario not found" in CI
Molecule scenarios are subfolders of molecule/. When you pass -s <name>, Molecule looks for molecule/<name>/molecule.yml. A typo or a scenario that only exists in another role makes Molecule report the scenario as missing.
What this error means
Molecule fails with "Scenario 'X' not found. Exiting." after a molecule test -s X invocation.
CRITICAL Scenario 'integration' not found. Exiting.Common causes
The scenario name is misspelled
The -s value does not match a folder under molecule/, so Molecule finds no matching scenario.
The scenario lives in a different role
In a collection with multiple roles, the named scenario exists under another role, not the current working directory.
How to fix it
List scenarios, then pass an exact name
- Run
molecule listfrom the role directory to see valid scenario names. - Pass the exact folder name to
-s. - Confirm each has a
molecule.yml.
molecule list
molecule test -s defaultCreate the scenario if it should exist
Scaffold the missing scenario so its folder and config exist.
molecule init scenario integrationHow to prevent it
- Reference scenario names from a matrix that reads
molecule list. - Keep scenario folder names stable and documented.
- Run Molecule from the correct role directory before selecting a scenario.