Skip to content

Commit

Permalink
ci: move the XML coverage report to .report (canonical#1465)
Browse files Browse the repository at this point in the history
Miguel, our TIOBE contact, has asked that we move the XML coverage file
that gets loaded, to `.report/coverage.xml`. This also means we can
avoid using a custom data file name, which is nice.
  • Loading branch information
tonyandrewmeyer committed Nov 27, 2024
1 parent 0706deb commit b103e82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ deps =
-e .
-e testing
commands =
mkdir -p .coverage
mkdir -p .report
coverage run --source={[vars]src_path},testing/src/scenario \
--data-file=.coverage.data \
-m pytest --ignore={[vars]tst_path}smoke -v --tb native {posargs}
coverage xml --data-file=.coverage.data -o .coverage/coverage.xml
coverage report --data-file=.coverage.data
coverage xml -o .report/coverage.xml
coverage report

[testenv:pebble]
description = Run real pebble tests
Expand Down

0 comments on commit b103e82

Please sign in to comment.