Skip to content
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

Help running coverage with pytest --testmon #774

Open
Tomasz-Kluczkowski opened this issue Feb 12, 2019 · 6 comments
Open

Help running coverage with pytest --testmon #774

Tomasz-Kluczkowski opened this issue Feb 12, 2019 · 6 comments
Labels
exotic Unusual execution environment

Comments

@Tomasz-Kluczkowski
Copy link

Hi,

Is there any chance that coverage report could be written when running it with pytest-testmon package? Is there anything one can do to get them cooperating with each other to run only the tests for changed files and generate an updated coverage report for only what needs updating?

Tom

@nedbat
Copy link
Owner

nedbat commented Feb 17, 2019

@Tomasz-Kluczkowski I'm not familiar with pytest-testmon, so I'm not sure what it would take. Have you talked to the maintainers?

@Tomasz-Kluczkowski
Copy link
Author

Tomasz-Kluczkowski commented Feb 17, 2019 via email

@tarpas
Copy link

tarpas commented Mar 22, 2019

Hey, pytest-testmon maintainer here. We track this issue here tarpas/pytest-testmon#86

As far as I can comprehend the new format in coverage 5.0 is not usable for pytest-testmon, and given that it has more features and config options it will be more difficult to implement the enhancement in our project then with coverage 4.x

@nedbat
Copy link
Owner

nedbat commented Oct 13, 2019

@tarpas The new data collected in 5.0 should make testmon's job easier I would think?

@tarpas
Copy link

tarpas commented Oct 15, 2019

@nedbat thanks for reaching out.
Some of our design goals, which I think are different to yours:

  • data stability even if some lines change (testmon avoids using line numbers), "lossy compression" (we cannot reconstruct line by line coverage, we only store method checksums)
  • progressively store data so it's possible to interrupt the test run and continue where we left off
  • storing failures (exceptions)
  • We are and want to be very tightly integrated with pytest.

For that reasons I don't think our efforts overlap much and don't foresee testmon could scrap some part of code and just build on top of coverage 5.0

So sorry, I have to reiterate that implementing our ticket #86 also produce standard .coverage file with .testmondata will be more difficult with 5.0 than before. I now know ho to implement it, I just didn't have yet time to do it. (a tiny PR to coveragepy wil be a part of that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exotic Unusual execution environment
Projects
None yet
Development

No branches or pull requests

4 participants