Don't hide Karma coverage reports

This patch updates the file names of the coverage reports so they are
visible by default on most systems. Also updates the .gitignore, so the
new files are not pushed to the Horizon repo.

DocImpact

Closes-Bug: 1508526
Change-Id: I3c1c8f4c88819e2f49b60722ea8cc37bdc711b8c
This commit is contained in:
Rob Cresswell 2015-10-21 13:28:52 +01:00
parent 673350892d
commit 248281406e
5 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
.noseids .noseids
.DS_STORE .DS_STORE
coverage.xml coverage.xml
coverage-karma
nosetests.xml nosetests.xml
pep8.txt pep8.txt
pylint.txt pylint.txt

View File

@ -143,7 +143,7 @@ such features as code coverage. Karma allows developer to run tests live,
as it can watch source and test files for changes. as it can watch source and test files for changes.
The default configuration also performs coverage reports, which are saved The default configuration also performs coverage reports, which are saved
to ``horizon/.coverage-karma/`` and ``openstack_dashboard/.coverage-karma/``. to ``horizon/coverage-karma/`` and ``openstack_dashboard/coverage-karma/``.
To run the Karma tests for Horizon and Dashboard using the `run_tests.sh` To run the Karma tests for Horizon and Dashboard using the `run_tests.sh`
script:: script::

View File

@ -46,8 +46,8 @@ developing, be sure to check the coverage reports on the master branch and
compare your development branch; this will help identify missing tests. compare your development branch; this will help identify missing tests.
To generate coverage reports, run ``npm run test``. The coverage reports can be To generate coverage reports, run ``npm run test``. The coverage reports can be
found at ``horizon/.coverage-karma/`` (framework tests) and found at ``horizon/coverage-karma/`` (framework tests) and
``openstack_dashboard/.coverage-karma/`` (dashboard tests). Load ``openstack_dashboard/coverage-karma/`` (dashboard tests). Load
``<browser>/index.html`` in a browser to view the reports. ``<browser>/index.html`` in a browser to view the reports.
Writing Tests Writing Tests

View File

@ -145,7 +145,7 @@ module.exports = function (config) {
coverageReporter: { coverageReporter: {
type: 'html', type: 'html',
dir: '../.coverage-karma/' dir: '../coverage-karma/'
}, },
// Coverage threshold values. // Coverage threshold values.

View File

@ -186,7 +186,7 @@ module.exports = function (config) {
// Places coverage report in HTML format in the subdirectory below. // Places coverage report in HTML format in the subdirectory below.
coverageReporter: { coverageReporter: {
type: 'html', type: 'html',
dir: './.coverage-karma/' dir: './coverage-karma/'
}, },
// Coverage threshold values. // Coverage threshold values.