-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tox does not support tags out of the box #1764
Comments
We have better results when installing tox-tags (which is in test-requirements.txt) either:
or:
I see later in the file this line, where the usage of the tag has been replaced by a search which is probably obscure for the profane.
I believe the most sane solution is following:
by
|
|
RE: tags, we saw the idea of removing it in #1732 (comment), which I think sounds fine if we can make the setup simpler! If you want to use this issue as a diving board for that, then please do! I have a documentation PR for testing come one day TM. |
IMHO, to run tests on a workstation, the tagged version is more featurefull, from an end user (tester) perspective. I would not run after removing the tags feature.
=> runs unit tests on one virtualenv, using same python version as the python you are running from (but it does not appear clearly)
=> runs unit tests on all environments tagged as unit:
To achieve same behavior without tags, we would use this insane command, which is really not user friendly.
Maybe we should discuss that matter further in the ticket and in next irc meeting ? |
I didn't know that somebody uses those... OTOH I wonder if there's any other ways which would be easier maintainable. |
@webknjaz i have the same feeling about maintainability. I could not find in tox documentation some way to aggregate the run of different environments in one command. This tag plugin adresses precisely that: have a simple command to put in the documentation, and to use to test before pushing. On my laptop I have some issue, though, because py35 and py36 are respectively skipped and failed :/. |
@themr0c maybe there's not enough copy-paste in |
Closes ansible#1764. Signed-off-by: Luke Murphy <[email protected]>
Closes ansible#1764. Signed-off-by: Luke Murphy <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
…ion accordingly; document all tox environments except pur Signed-off-by: Fabrice Flore-Thebault <[email protected]>
PR #1886 by @themr0c Fixes #1885 Fixes #1764 Signed-off-by: Fabrice Flore-Thebault <[email protected]>
Issue Type
Molecule and Ansible details
master branch
Detail any linters or test runners used:
Desired Behavior
Better documentation about usage of tox tags.
Actual Behaviour
In https://molecule.readthedocs.io/en/latest/testing.html, documentation is stating that you can test with tox tags
But tox (3.7.0) does not support tags out of the box.
Is it a feature removed from tox or a dependency we are missing in the documentation ?
The text was updated successfully, but these errors were encountered: