scripts: Keep coverage.xml
useful for tools showing coverage info in e.g. your editor
This commit is contained in:
parent
23d6a331f7
commit
4ffb8a37aa
|
|
@ -328,10 +328,6 @@ def main_check():
|
|||
print("or check https://codecov.io/github/qutebrowser/qutebrowser")
|
||||
print()
|
||||
|
||||
if scriptutils.ON_CI:
|
||||
print("Keeping coverage.xml on CI.")
|
||||
else:
|
||||
os.remove('coverage.xml')
|
||||
return 1 if messages else 0
|
||||
|
||||
|
||||
|
|
@ -352,7 +348,6 @@ def main_check_all():
|
|||
'--cov-report', 'xml', test_file], check=True)
|
||||
with open('coverage.xml', encoding='utf-8') as f:
|
||||
messages = check(f, [(test_file, src_file)])
|
||||
os.remove('coverage.xml')
|
||||
|
||||
messages = [msg for msg in messages
|
||||
if msg.typ == MsgType.insufficient_coverage]
|
||||
|
|
|
|||
Loading…
Reference in New Issue