mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Update verbosity when we create junit-style output report files (#608)
This commit is contained in:
parent
0be3795eb4
commit
e33688d52b
1 changed files with 4 additions and 1 deletions
|
|
@ -190,9 +190,12 @@ def run_tests(argv, env, coverage, junit_xml):
|
|||
elif junit_xml:
|
||||
from xmlrunner import XMLTestRunner # noqa
|
||||
os.environ.update(env)
|
||||
verbosity = 1
|
||||
if '-v' in argv or '--verbose' in argv:
|
||||
verbosity = 2
|
||||
with open(junit_xml, 'wb') as output:
|
||||
unittest.main(
|
||||
testRunner=XMLTestRunner(output=output),
|
||||
testRunner=XMLTestRunner(output=output, verbosity=verbosity),
|
||||
module=None,
|
||||
argv=argv,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue