Closed varpstar closed 4 days ago
Attention: Patch coverage is 87.69231%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 88.56%. Comparing base (
d9dd96d
) to head (4dda893
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
src/components/timeline/TrackContextMenu.js | 85.00% | 6 Missing :warning: |
src/profile-logic/tracks.js | 90.90% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@canova Should I cover all those lines with tests from Codecov Report?
To answer your question, yes it would be good to have some specific tests covering this feature. We don't need a lot of them and covering all the lines, but at least the main ones.
For the tests, you can have a look at the existing related ones in src/test/components/TrackContextMenu.test.js. I'm looking for a specific test that would click on this option and check the result, maybe once for a global track and once for a local track.
I found it difficult to decide where to put the type name converter. There are some converters in the tests folder. But I think it would be better to place it somewhere outside of trackContextMenu because it can be used elsewhere as well
fixes https://github.com/firefox-devtools/profiler/issues/2768
I am not sure if I need to add some additional tests, since I used
hideProvidedTracks
, which seems to be ready for production already