Skip to content

Commit

Permalink
Fix coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekidya committed Oct 16, 2024
1 parent 83cfe3d commit b0715fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions teamcity/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def report(self, morfs, outfile=None):

for cu in units:
try:
analysis = self.coverage._analyze(cu)
analysis = self.coverage._analyze(cu.filename)
nums = analysis.numbers
total += nums
except KeyboardInterrupt:
Expand All @@ -406,7 +406,7 @@ def report(self, morfs, outfile=None):
if typ is NotPython and not cu.should_be_python():
continue

test_id = cu.name
test_id = cu.relname
details = convert_error_to_string(err)

self.messages.testStarted(test_id, flowId=test_id)
Expand Down
4 changes: 1 addition & 3 deletions tests/integration-tests/pytest_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ def test_custom_test_items(venv):

if sys.version_info >= (2, 6):
@pytest.mark.parametrize("coverage_version, pytest_cov_version", [
("==4.4.2", "==2.11.1"),
("==4.5.4", "==2.11.1"),
("==5.0.1", "==2.11.1"),
("==7.2.7", "==4.1.0"),
# latest
("", ""),
])
Expand Down

0 comments on commit b0715fb

Please sign in to comment.