Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-analytics-data-api
Commits
010ae3fa
Commit
010ae3fa
authored
Apr 11, 2016
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #112 from edx/dan-f/fix-coverage
Fix the way we measure coverage
parents
c8c8e25f
5bac7f2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
+22
-15
.coveragerc
+9
-2
Makefile
+13
-13
No files found.
.coveragerc
View file @
010ae3fa
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
omit = analyticsdataserver/settings*
omit = analyticsdataserver/settings*
*wsgi.py
*wsgi.py
analytics_data_api/management/commands/generate_fake_course_data.py
analytics_data_api/management/commands/generate_fake_course_data.py
source = analyticsdataserver, analytics_data_api
branch = True
[report]
[report]
# Regexes for lines to exclude from consideration
# Regexes for lines to exclude from consideration
...
@@ -9,4 +11,10 @@ exclude_lines =
...
@@ -9,4 +11,10 @@ exclude_lines =
# Have to re-enable the standard pragma
# Have to re-enable the standard pragma
pragma: no cover
pragma: no cover
raise NotImplementedError
raise NotImplementedError
\ No newline at end of file
[html]
directory = ${COVERAGE_DIR}/html/
[xml]
output = ${COVERAGE_DIR}/coverage.xml
Makefile
View file @
010ae3fa
ROOT
=
$(
shell
echo
"
$$
PWD"
)
ROOT
=
$(
shell
echo
"
$$
PWD"
)
COVERAGE
=
$(ROOT)
/build/coverage
COVERAGE
_DIR
=
$(ROOT)
/build/coverage
PACKAGES
=
analyticsdataserver analytics_data_api
PACKAGES
=
analyticsdataserver analytics_data_api
DATABASES
=
default analytics
DATABASES
=
default analytics
ELASTICSEARCH_VERSION
=
1.5.2
ELASTICSEARCH_VERSION
=
1.5.2
TEST_SETTINGS
=
analyticsdataserver.settings.test
.PHONY
:
requirements develop clean diff.report view.diff.report quality
.PHONY
:
requirements develop clean diff.report view.diff.report quality
...
@@ -28,22 +28,22 @@ clean:
...
@@ -28,22 +28,22 @@ clean:
coverage erase
coverage erase
test
:
clean
test
:
clean
.
./.test_env
&&
./manage.py
test
--settings
=
analyticsdataserver.settings.test
--with-ignore-docstrings
\
coverage run ./manage.py
test
--settings
=
$(TEST_SETTINGS)
\
--exclude-dir
=
analyticsdataserver/settings
--with-coverage
--cover-inclusive
--cover-branches
\
--with-ignore-docstrings
--exclude-dir
=
analyticsdataserver/settings
\
--cover-html
--cover-html-dir
=
$(COVERAGE)
/html/
\
--cover-xml
--cover-xml-file
=
$(COVERAGE)
/coverage.xml
\
$
(
foreach package,
$(PACKAGES)
,--cover-package
=
$(package)
)
\
$(PACKAGES)
$(PACKAGES)
export
COVERAGE_DIR
=
$(COVERAGE_DIR)
&&
\
coverage html
&&
\
coverage xml
diff.report
:
diff.report
:
diff-cover
$(COVERAGE
)
/coverage.xml
--html-report
$(COVERAGE
)
/diff_cover.html
diff-cover
$(COVERAGE
_DIR)
/coverage.xml
--html-report
$(COVERAGE_DIR
)
/diff_cover.html
diff-quality
--violations
=
pep8
--html-report
$(COVERAGE)
/diff_quality_pep8.html
diff-quality
--violations
=
pep8
--html-report
$(COVERAGE
_DIR
)
/diff_quality_pep8.html
diff-quality
--violations
=
pylint
--html-report
$(COVERAGE)
/diff_quality_pylint.html
diff-quality
--violations
=
pylint
--html-report
$(COVERAGE
_DIR
)
/diff_quality_pylint.html
view.diff.report
:
view.diff.report
:
xdg-open file:///
$(COVERAGE)
/diff_cover.html
xdg-open file:///
$(COVERAGE
_DIR
)
/diff_cover.html
xdg-open file:///
$(COVERAGE)
/diff_quality_pep8.html
xdg-open file:///
$(COVERAGE
_DIR
)
/diff_quality_pep8.html
xdg-open file:///
$(COVERAGE)
/diff_quality_pylint.html
xdg-open file:///
$(COVERAGE
_DIR
)
/diff_quality_pylint.html
quality
:
quality
:
pep8
$(PACKAGES)
pep8
$(PACKAGES)
...
...
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