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
da6d70a9
Commit
da6d70a9
authored
Jun 05, 2014
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating diff-cover, adding --compare-branch feature to paver task
parent
2e2136d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
pavelib/tests.py
+25
-3
requirements/edx/github.txt
+1
-1
No files found.
pavelib/tests.py
View file @
da6d70a9
...
@@ -146,10 +146,15 @@ def test():
...
@@ -146,10 +146,15 @@ def test():
@task
@task
@needs
(
'pavelib.prereqs.install_prereqs'
)
@needs
(
'pavelib.prereqs.install_prereqs'
)
def
coverage
():
@cmdopts
([
(
"compare_branch"
,
"b"
,
"Branch to compare against, defaults to origin/master"
),
])
def
coverage
(
options
):
"""
"""
Build the html, xml, and diff coverage reports
Build the html, xml, and diff coverage reports
"""
"""
compare_branch
=
getattr
(
options
,
'compare_branch'
,
'origin/master'
)
for
directory
in
Env
.
LIB_TEST_DIRS
+
[
'cms'
,
'lms'
]:
for
directory
in
Env
.
LIB_TEST_DIRS
+
[
'cms'
,
'lms'
]:
report_dir
=
Env
.
REPORT_DIR
/
directory
report_dir
=
Env
.
REPORT_DIR
/
directory
...
@@ -181,7 +186,24 @@ def coverage():
...
@@ -181,7 +186,24 @@ def coverage():
diff_html_path
=
os
.
path
.
join
(
Env
.
REPORT_DIR
,
'diff_coverage_combined.html'
)
diff_html_path
=
os
.
path
.
join
(
Env
.
REPORT_DIR
,
'diff_coverage_combined.html'
)
# Generate the diff coverage reports (HTML and console)
# Generate the diff coverage reports (HTML and console)
sh
(
"diff-cover {xml_report_str} --html-report {diff_html_path}"
.
format
(
xml_report_str
=
xml_report_str
,
diff_html_path
=
diff_html_path
))
sh
(
"diff-cover {xml_report_str}"
.
format
(
xml_report_str
=
xml_report_str
))
sh
(
"diff-cover {xml_report_str}"
.
format
(
xml_report_str
=
xml_report_str
))
sh
(
"diff-cover {xml_report_str} --compare-branch={compare_branch} "
"--html-report {diff_html_path}"
.
format
(
xml_report_str
=
xml_report_str
,
compare_branch
=
compare_branch
,
diff_html_path
=
diff_html_path
,
)
)
sh
(
"diff-cover {xml_report_str} --compare-branch="
"{compare_branch}"
.
format
(
xml_report_str
=
xml_report_str
,
compare_branch
=
compare_branch
,
)
)
print
(
"
\n
"
)
print
(
"
\n
"
)
requirements/edx/github.txt
View file @
da6d70a9
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
# Our libraries:
# Our libraries:
-e git+https://github.com/edx/XBlock.git@fc5fea25c973ec66d8db63cf69a817ce624f5ef5#egg=XBlock
-e git+https://github.com/edx/XBlock.git@fc5fea25c973ec66d8db63cf69a817ce624f5ef5#egg=XBlock
-e git+https://github.com/edx/codejail.git@71f5c5616e2a73ae8cecd1ff2362774a773d3665#egg=codejail
-e git+https://github.com/edx/codejail.git@71f5c5616e2a73ae8cecd1ff2362774a773d3665#egg=codejail
-e git+https://github.com/edx/diff-cover.git@v0.
2.9
#egg=diff_cover
-e git+https://github.com/edx/diff-cover.git@v0.
4.1
#egg=diff_cover
-e git+https://github.com/edx/js-test-tool.git@v0.1.5#egg=js_test_tool
-e git+https://github.com/edx/js-test-tool.git@v0.1.5#egg=js_test_tool
-e git+https://github.com/edx/django-waffle.git@823a102e48#egg=django-waffle
-e git+https://github.com/edx/django-waffle.git@823a102e48#egg=django-waffle
-e git+https://github.com/edx/event-tracking.git@0.1.0#egg=event-tracking
-e git+https://github.com/edx/event-tracking.git@0.1.0#egg=event-tracking
...
...
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