mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Support loading .coverage reports (PY-25740)
This commit is contained in:
@@ -45,9 +45,15 @@ sys.argv = argv
|
||||
|
||||
cwd = os.getcwd()
|
||||
|
||||
try:
|
||||
main()
|
||||
finally:
|
||||
if run_cov:
|
||||
os.chdir(cwd)
|
||||
main(["xml", "-o", coverage_file + ".xml", "--ignore-errors"])
|
||||
run_xml = os.getenv('PYCHARM_RUN_COVERAGE_XML')
|
||||
if run_xml:
|
||||
os.chdir(cwd)
|
||||
main(["xml", "-o", coverage_file + ".xml", "--ignore-errors"])
|
||||
else:
|
||||
try:
|
||||
main()
|
||||
finally:
|
||||
if run_cov:
|
||||
os.chdir(cwd)
|
||||
main(["xml", "-o", coverage_file + ".xml", "--ignore-errors"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user