Add URL for viewing node coverage data on dev server.

Running test-js-with-node --coverage now provides a URL
to view the output data on the web.

Fixes #5177.
This commit is contained in:
Cory Lynch
2017-06-09 01:17:00 -04:00
committed by Tim Abbott
parent 4986027126
commit 6653e19e3a
3 changed files with 7 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ urls = [
serve, {'document_root':
os.path.join(settings.DEPLOY_ROOT, 'var/coverage'),
'show_indexes': True}),
url(r'^node-coverage/(?P<path>.*)$',
serve, {'document_root':
os.path.join(settings.DEPLOY_ROOT, 'var/node-coverage/lcov-report'),
'show_indexes': True}),
url(r'^docs/(?P<path>.*)$',
serve, {'document_root':
os.path.join(settings.DEPLOY_ROOT, 'docs/_build/html')}),