tarpas / pytest-testmon

Selects tests affected by changed files. Executes the right tests first. Continuous test runner when used with pytest-watch.
https://testmon.org
MIT License
800 stars 54 forks source link

How to use in gitlab CI #177

Open uriva opened 2 years ago

uriva commented 2 years ago

Looks like a great project. Thank you.

I started to imagine a way to use this in a CI system (e.g. in gitlab). I hit these problems:

  1. If one would commit the testmon data, how can we let it know what is the baseline branch to compare? (e.g. master)
  2. How can we make sure the testmon data (i.e. the coverage data) fits the state of the files in a certain commit? Could a pre-commit check be devised?
  3. If that is possible, how fast would it be to recompute the coverage data given its previous version and the baseline branch?

Thanks!

iamMHZ commented 1 year ago

Any progress on the issue? Is there any example/doc on how to integrate it with CI ? @uriva @tarpas