Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
88d826cf
Commit
88d826cf
authored
Jun 29, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the diff_coverage command to share options with the coverage command
parent
c3434d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pavelib/tests.py
+3
-3
No files found.
pavelib/tests.py
View file @
88d826cf
...
@@ -267,7 +267,7 @@ def coverage(options):
...
@@ -267,7 +267,7 @@ def coverage(options):
sh
(
"coverage xml --rcfile={}"
.
format
(
rcfile
))
sh
(
"coverage xml --rcfile={}"
.
format
(
rcfile
))
# Generate the coverage.py HTML report
# Generate the coverage.py HTML report
sh
(
"coverage html --rcfile={}"
.
format
(
rcfile
))
sh
(
"coverage html --rcfile={}"
.
format
(
rcfile
))
call_task
(
'diff_coverage'
,
options
=
options
.
coverage
)
diff_coverage
()
# pylint: disable=no-value-for-parameter
@task
@task
...
@@ -275,12 +275,12 @@ def coverage(options):
...
@@ -275,12 +275,12 @@ def coverage(options):
@cmdopts
([
@cmdopts
([
(
"compare-branch="
,
"b"
,
"Branch to compare against, defaults to origin/master"
),
(
"compare-branch="
,
"b"
,
"Branch to compare against, defaults to origin/master"
),
(
"compare_branch="
,
None
,
"deprecated in favor of compare-branch"
),
(
"compare_branch="
,
None
,
"deprecated in favor of compare-branch"
),
])
]
,
share_with
=
[
'coverage'
]
)
def
diff_coverage
(
options
):
def
diff_coverage
(
options
):
"""
"""
Build the diff coverage reports
Build the diff coverage reports
"""
"""
compare_branch
=
options
.
diff_coverage
.
get
(
'compare_branch'
,
'origin/master'
)
compare_branch
=
options
.
get
(
'compare_branch'
,
'origin/master'
)
# Find all coverage XML files (both Python and JavaScript)
# Find all coverage XML files (both Python and JavaScript)
xml_reports
=
[]
xml_reports
=
[]
...
...
Write
Preview
Markdown
is supported
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