Project

Profile

Help

Task #4376

closed

Add docs for running molecule tests locally

Added by amacdona@redhat.com almost 6 years ago. Updated about 5 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Dev Environment, Documentation
Sprint:
Sprint 50
Quarter:

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.

Actions #1

Updated by amacdona@redhat.com almost 6 years 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.

Actions #2

Updated by amacdona@redhat.com over 5 years 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.

Actions #3

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #4

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #5

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF