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
f8d9359d
Commit
f8d9359d
authored
Feb 04, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split diff-coverage into separate paver task
parent
f3327762
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
pavelib/tests.py
+16
-1
scripts/jenkins-report.sh
+1
-1
No files found.
pavelib/tests.py
View file @
f8d9359d
...
...
@@ -3,7 +3,7 @@ Unit test tasks
"""
import
os
import
sys
from
paver.easy
import
sh
,
task
,
cmdopts
,
needs
from
paver.easy
import
sh
,
task
,
cmdopts
,
needs
,
call_task
from
pavelib.utils.test
import
suites
from
pavelib.utils.envs
import
Env
from
optparse
import
make_option
...
...
@@ -204,6 +204,21 @@ def coverage(options):
dir
=
directory
))
call_task
(
'diff_coverage'
,
options
=
dict
(
options
))
@task
@needs
(
'pavelib.prereqs.install_prereqs'
)
@cmdopts
([
(
"compare_branch="
,
"b"
,
"Branch to compare against, defaults to origin/master"
),
])
def
diff_coverage
(
options
):
"""
Build the diff coverage reports
"""
compare_branch
=
getattr
(
options
,
'compare_branch'
,
'origin/master'
)
# Find all coverage XML files (both Python and JavaScript)
xml_reports
=
[]
...
...
scripts/jenkins-report.sh
View file @
f8d9359d
...
...
@@ -2,7 +2,7 @@
source
scripts/jenkins-common.sh
# Run coverage again to get the diff coverage report
paver coverage
paver
diff_
coverage
# JUnit test reporter will fail the build
# if it thinks test results are old
...
...
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