Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
02b559ee
Commit
02b559ee
authored
6 years ago
by
GuillaumeCisco
Committed by
Dmitry Trofimov
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Support .coveragerc file
parent
bfede400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/helpers/coverage_runner/run_coverage.py
+8
-3
python/helpers/coverage_runner/run_coverage.py
with
8 additions
and
3 deletions
+8
-3
python/helpers/coverage_runner/run_coverage.py
+
8
-
3
View file @
02b559ee
...
...
@@ -46,14 +46,19 @@ sys.argv = argv
cwd
=
os
.
getcwd
()
run_xml
=
os
.
getenv
(
'PYCHARM_RUN_COVERAGE_XML'
)
argv
=
[
"xml"
,
"-o"
,
coverage_file
+
".xml"
,
"--ignore-errors"
]
rcfile
=
cwd
+
"/.coveragerc"
if
os
.
path
.
exists
(
rcfile
):
print
(
"Loading rcfile: %s
\n
"
%
rcfile
)
argv
+=
[
"--rcfile"
,
rcfile
]
if
run_xml
:
os
.
chdir
(
cwd
)
main
(
[
"xml"
,
"-o"
,
coverage_file
+
".xml"
,
"--ignore-errors"
]
)
main
(
argv
)
else
:
try
:
main
()
finally
:
if
run_cov
:
os
.
chdir
(
cwd
)
main
([
"xml"
,
"-o"
,
coverage_file
+
".xml"
,
"--ignore-errors"
])
main
(
argv
)
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help