Searchfox integration exposes code coverage links for pages without coverage and a confusing 400 error is displayed
Categories
(Testing :: Code Coverage, defect, P3)
Tracking
(Not tracked)
People
(Reporter: asuth, Unassigned)
References
Details
Right now the following test files show "Code Coverage" links in searchfox:
- https://searchfox.org/mozilla-central/source/dom/tests/mochitest/storageevent/test_storageSessionStorageEventCheckNoPropagation.html
- https://searchfox.org/mozilla-central/source/dom/tests/mochitest/storageevent/interOriginTest2.js
If I click on them, I get 400 errors "Failed to load coverage: 400 - BAD REQUEST" which is confusing.
- https://coverage.moz.tools/#revision=latest&path=dom/tests/mochitest/storageevent/test_storageSessionStorageEventCheckNoPropagation.html&view=file
- https://coverage.moz.tools/#revision=latest&path=dom/tests/mochitest/storageevent/interOriginTest2.js&view=file
It appears that dom/test/ isn't indexed at all per https://coverage.moz.tools/#revision=latest&path=dom&view=directory ?
It's possible the files in question are disabled, and while it would be best if the coverage tool knew that, just having an error better than 400 would be helpful I think. (Or maybe this is a legit error that should be fixed, in which case, that would also be good! :)
Comment 1•6 years ago
|
||
We intentionally don't have coverage for test files. While that might change in the future, I think for now the best solution would be:
- Us showing a nicer error message;
- If possible, Searchfox not adding a "Code Coverage" link on test files.
Comment 2•6 years ago
|
||
The priority flag is not set for this bug.
:ekyle, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
We intentionally don't have coverage for test files.
This problem is general for all files that don't end up being compiled.
Comment 5•5 days ago
|
||
Searchfox doesn't link to coverage.moz.tools at all since https://github.com/mozsearch/mozsearch/commit/962360f92c4fc559ed1dffc174e317b63097faea.
Updated•5 days ago
|
Description
•