cht-core
cht-core copied to clipboard
Record test coverage
Describe the issue We don't have an easy way to tell which code is well tested and which isn't, or if a change is reducing or improving coverage.
Describe the improvement you'd like
- Update our testing grunt tasks (karma, mocha, and if possible protractor) to produce a report of which lines of code are touched during testing. This report should be gitignored.
- Publish the results somewhere (AWS?) during CI.
- Find some way to diff the results between the branch and master so they can be compared when doing a code review.
Describe alternatives you've considered None.
Timebox Don't spend more than two days on this. If it's too hard to do with our current stack then we can delay it until we redo our stack (after Angular 8). If you only get the first task done in the time allowed then get that merged and we can come back to the CI improvements later.
Blocked waiting for Angular++
@dianabarsan Is this solved now?
This is done for webapp. My opinion is to also add code coverage to API and Sentinel at least, if not to all shared libs as well.
Ok, good call. Leaving open for now.
This PR added unit test coverage for API and Sentinel. I think we should also do it for shared libs so I'm keeping this issue open until then.
Added coverage summary for shared libraries as well. There is no integration with CI and results aren't stored anywhere (except for CI logs).