Ned Batchelder
Ned Batchelder
@luisfmelo Even if we implement conditional coverage, it wouldn't help in your situation. You don't have a condition. Look at the disassembly: ``` >>> import dis >>> def is_completed(self) ->...
We can talk some more about how this could be accomplished, though it feels like a big lift, and I should get 5.0 out the door before taking on more...
At a quick look, you are doing this: ``` for filename in cov_data._arcs: total_coverage += len(cov_data._arcs[filename]) ``` which could instead be: ``` for filename in cov_data.measured_files(): total_coverage += len(cov_data.arcs(filename)) ```...
5.0 alphas are available now, and feedback is appreciated. I'm hoping to have the beta this month.
@sobolevn this issue has meandered a bit. What feature exactly are you looking for?
I see. https://github.com/nedbat/coveragepy/issues/660#issuecomment-399708946 is a suggestions by @tpansino. It is not implemented yet in coverage.py. I'm not sure the status of their work.
*Original comment by* **pckroon (Bitbucket: [pckroon](https://bitbucket.org/pckroon), GitHub: [pckroon](https://github.com/pckroon))** ---------------------------------------- I think (from coverage's perspective) I can make a file like such: background.py ``` import project.data ``` and then do ```coverage...
How do you envision running your tests so that you can run test_data and get the lines counted, and also run other tests and not get the lines counted?
*Original comment by* **pckroon (Bitbucket: [pckroon](https://bitbucket.org/pckroon), GitHub: [pckroon](https://github.com/pckroon))** ---------------------------------------- Thanks for the lightning fast reply. And indeed, running test_data should count is as covered, but currently running test_x also covers...
Hmm, this seems like the opposite of the nocover pragma: a line that is executed, but you don't want counted as covered. There is no way to do that now....