kstrauser/pytest-fastest

Incompatible with pytest-cov

Opened this issue · 2 comments

As this plugin and coverage use sys.settrace, they are incompatible.

It would be lovely if there was a way to share the coverage data. Perhaps pytest-cov exposes it in a way that this plugin could use it?

I think that's going to be tricky, if not impossible. The main problem is that tracer is very minimal with what it traces, but very fast - much faster than coverage. Its call graph is also drastically simpler and optimized for quick lookups for the kind of stuff fastest needs.

Note that I'm 100% behind the idea of using coverage's data, but realistically I doubt if I'll be the one who implements it.