reportportal / agent-python-pytest

Framework integration with PyTest
Apache License 2.0
94 stars 102 forks source link

Coverage #281

Closed Niccolum closed 2 years ago

Niccolum commented 2 years ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I see test results without full code coverage in reportportal.

Describe the solution you'd like If possible - check, if pytest-cov (most popular plugin for coverage) is installed and send coverage info to reportportal

iivanou commented 2 years ago

@Niccolum Are you sure the bug resides in the correct project? This one includes code coverage. image

Niccolum commented 2 years ago

@iivanou I don't know any developers, who use pytest without pytest-cov. It's like Django without DRF. Why not?

iivanou commented 2 years ago

I do not understand you. What the problem is? Coverage for this agent is generated via pytest-cov....

Niccolum commented 2 years ago

Is it possible to send result of pytest-cov to reportportal? This is my main point)

iivanou commented 2 years ago

What is the use case? The results reported by the pytest-cov will duplicate the results which are sent by the agent.

Niccolum commented 2 years ago

Hmm. Maybe it's my missing. I can't find this info in reportportal to create custom graphs

iivanou commented 2 years ago

@Niccolum Double-check whether you added --reportportal arguments to your pytest execution or not. The results will be reported by the agent only if that argument is passed to the pytest.