Output coverage to coverage.xml.
This avoids https://bitbucket.org/ned/coveragepy/issues/400/
This commit is contained in:
parent
79c1867e6c
commit
9e6bcb97ca
@ -14,4 +14,4 @@ exclude_lines =
|
|||||||
if __name__ == ["']__main__["']:
|
if __name__ == ["']__main__["']:
|
||||||
|
|
||||||
[xml]
|
[xml]
|
||||||
output=.coverage.xml
|
output=coverage.xml
|
||||||
|
@ -143,7 +143,7 @@ def main():
|
|||||||
utils.change_cwd()
|
utils.change_cwd()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('.coverage.xml', encoding='utf-8') as f:
|
with open('coverage.xml', encoding='utf-8') as f:
|
||||||
messages = check(f, PERFECT_FILES)
|
messages = check(f, PERFECT_FILES)
|
||||||
except Skipped as e:
|
except Skipped as e:
|
||||||
print(e)
|
print(e)
|
||||||
@ -152,7 +152,7 @@ def main():
|
|||||||
for msg in messages:
|
for msg in messages:
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|
||||||
os.remove('.coverage.xml')
|
os.remove('coverage.xml')
|
||||||
return 1 if messages else 0
|
return 1 if messages else 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user