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:
parent
673350892d
commit
248281406e
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@
|
||||
.noseids
|
||||
.DS_STORE
|
||||
coverage.xml
|
||||
coverage-karma
|
||||
nosetests.xml
|
||||
pep8.txt
|
||||
pylint.txt
|
||||
|
@ -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.
|
||||
|
||||
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`
|
||||
script::
|
||||
|
@ -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.
|
||||
|
||||
To generate coverage reports, run ``npm run test``. The coverage reports can be
|
||||
found at ``horizon/.coverage-karma/`` (framework tests) and
|
||||
``openstack_dashboard/.coverage-karma/`` (dashboard tests). Load
|
||||
found at ``horizon/coverage-karma/`` (framework tests) and
|
||||
``openstack_dashboard/coverage-karma/`` (dashboard tests). Load
|
||||
``<browser>/index.html`` in a browser to view the reports.
|
||||
|
||||
Writing Tests
|
||||
|
@ -145,7 +145,7 @@ module.exports = function (config) {
|
||||
|
||||
coverageReporter: {
|
||||
type: 'html',
|
||||
dir: '../.coverage-karma/'
|
||||
dir: '../coverage-karma/'
|
||||
},
|
||||
|
||||
// Coverage threshold values.
|
||||
|
@ -186,7 +186,7 @@ module.exports = function (config) {
|
||||
// Places coverage report in HTML format in the subdirectory below.
|
||||
coverageReporter: {
|
||||
type: 'html',
|
||||
dir: './.coverage-karma/'
|
||||
dir: './coverage-karma/'
|
||||
},
|
||||
|
||||
// Coverage threshold values.
|
||||
|
Loading…
Reference in New Issue
Block a user