Closed AnesBenmerzoug closed 8 months ago
@mdbenito do we have a codecov account?
@mdbenito do we have a codecov account?
Yes, see #291
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:
@mdbenito
- What do you mean by "supported by pycharm"?
I mean, if I run tox as a run configuration, will I get IDE support for the tests, in particular with links to the right files (as opposed to useless copies in the tox environment)
- Do you mean starting multiple groups in parallel? pytest-split doesn't support that. The best we can do is to either increase or decrease the number of groups.
I mean running the n commands in one go, and computing the number n automatically.
But never mind. xdist manages to fully use the machine and split works wonders on CI, so let's leave it like that.
@AnesBenmerzoug One more thing: I think it would make sense to deactivate coverage reports in local tests. It's pointless, generates tons of temp files and surely slows things down.
@AnesBenmerzoug See #454 in case you want to look into it for this PR, otherwise we can merge this as-is.
@mdbenito
--store-durations
.@AnesBenmerzoug There seems to be some problem with "Run base tests"?
- Not sure about the PyCharm supports. I will test it and tell if it's possible to do what you want.
- There is no way currently to determine the number of splits automatically and to run them all. I think it's fine as it is for now.
I don't think this is necessary if the situation is as I described in this comment, namely:
In this case, we get max core usage locally, and IDE built-in support to launch and track the parallel tests.
@mdbenito Run base tests
shouldn't exist anymore. It was replaced by Run Tests - Python <version> - Group <group>
in this PR.
Description
This PR closes #312 #291
Changes
--failed-first
pytest flag to start testing from the last failed tests.pytest-split
to automatically split the tests in 4 groups based on their measured duration..test_durations
file for use in CI.pytest-cases
to separate the test case definition from the tests in the influences tests.pytest.mark.slow
to mark slow tests and skip them by default.--slow-tests
to enable running slow tests.tests
environment.report
tox environment.1.5.1
.pytest-sugar
as a dev dependency.nbmake
to test notebooks instead of using custom script.Checklist
"tags": ["hide"]
or"tags": ["hide-input"]
~