Allow to only run unit tests with Tox #181
No reviewers
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#181
Loading…
Reference in New Issue
No description provided.
Delete Branch ":cifix/add-unit-test-only-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I found this useful to get faster feedback when running the tests for witten/borgmatic#180. Also, I could not pass the
posargs
to the pytest invocation (I'll submit in another PR). Anyway, this allows to runtox -e unit-test -- {posargs
and not have black/isort/etc. runOn second thoughts, maybe I won't submit a PR for this. The main
testenv
mixes commands and therefore it is not clear which should get the posargs. I think this newtestenv
solves that for the case ofpytest
.Thanks for working on this.. Seems like a good idea to me. A couple of thoughts:
test
, as it includes both unit tests and integration tests.-v
if no positional args are given. Is that just because the default pytest verbosity level is insufficient? Does not seem like a problem.. Just curious.Hey, thanks for taking a look at it.
I've done the following then:
test
-v
as there was no real preference around thisposargs
now to the default testenvpytest
Thanks, looks good!