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
0ea3a774
Commit
0ea3a774
authored
Jun 30, 2016
by
Calen Pennington
Committed by
GitHub
Jun 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12899 from cpennington/fix-diff-cover-args
Fix diff cover args
parents
930e0375
88d826cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
pavelib/tests.py
+3
-3
pavelib/utils/test/suites/suite.py
+0
-1
No files found.
pavelib/tests.py
View file @
0ea3a774
...
...
@@ -267,7 +267,7 @@ def coverage(options):
sh
(
"coverage xml --rcfile={}"
.
format
(
rcfile
))
# Generate the coverage.py HTML report
sh
(
"coverage html --rcfile={}"
.
format
(
rcfile
))
call_task
(
'diff_coverage'
,
options
=
options
.
coverage
)
diff_coverage
()
# pylint: disable=no-value-for-parameter
@task
...
...
@@ -275,12 +275,12 @@ def coverage(options):
@cmdopts
([
(
"compare-branch="
,
"b"
,
"Branch to compare against, defaults to origin/master"
),
(
"compare_branch="
,
None
,
"deprecated in favor of compare-branch"
),
])
]
,
share_with
=
[
'coverage'
]
)
def
diff_coverage
(
options
):
"""
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)
xml_reports
=
[]
...
...
pavelib/utils/test/suites/suite.py
View file @
0ea3a774
...
...
@@ -27,7 +27,6 @@ class TestSuite(object):
self
.
failed_suites
=
[]
self
.
verbosity
=
int
(
kwargs
.
get
(
'verbosity'
,
1
))
self
.
skip_clean
=
kwargs
.
get
(
'skip_clean'
,
False
)
self
.
pdb
=
kwargs
.
get
(
'pdb'
,
False
)
self
.
passthrough_options
=
kwargs
.
get
(
'passthrough_options'
,
[])
def
__enter__
(
self
):
...
...
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