Project

Profile

Help

Task #4376

Add docs for running molecule tests locally

Added by amacdona@redhat.com 9 months ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Dev Environment, Documentation
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 50

Description

When the ansible-pulp3 molecule tests fail on travis, the error message is rarely helpful.

The way that I test list locally is to pip install molecule into a virtualenvironment (on my machine, not the vm).

`molecule test --all` runs all scenarios (right now, this is "default" and "source")
`molecule test --scenario-name source` only tests the source installation

`molecule test` actually runs a collection of tasks, (create, prepare, converge, idempotence, test, delete, etc)

if our playbooks fail to run correctly, `molecule converge` only runs a subset (create, prepare, converge) so the tests don't need to run so long.

Any of these can include `--debug`, as in `molecule --debug test` to retrieve a more helpful error message. However, it is best to do this on only a subset because --debug is extremely verbose.

History

#1 Updated by amacdona@redhat.com 9 months ago

It would also be good to add docs for how to use tox. Tox will run the same stuff, but in multiple python environments. I don't recall the syntax off the top of my head though.

#2 Updated by amacdona@redhat.com 7 months ago

  • Status changed from NEW to MODIFIED
  • Assignee set to amacdona@redhat.com
  • Sprint set to Sprint 50
  • Tags Dev Environment, Documentation, Pulp 3 added

This got picked up in another issue.

#3 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF