eclipse-kanto / kanto

Kanto
https://eclipse.dev/kanto
Other
20 stars 8 forks source link

Unit test execution report and code coverage reports as release assets #253

Closed stoyan-zoubev closed 4 months ago

stoyan-zoubev commented 1 year ago

The proposal is to execute unit tests for each Kanto component when a release is done, to generate code coverage reports (maybe both text and HTML output formats) and store all these reports as release assets in each component's repository.

This can be easily achieved by adding to each repository a release workflow that is triggered upon a release creation - it needs to setup the environment with Go enabled, checkout the source code, execute the unit test cases (preferably enabling -v (verbose), -race flags), store the execution output as unit test report, generate code coverage reports as text and HTML output and make an archive of these. Finally, the unit test report file and the archive with text/HTML code coverage reports are to be uploaded as release assets.

This will be somehow a guaranty for quality of the released component.

IvanBoychevMarinov commented 11 months ago

After the initial overview we identified at least two approaches to provide meaningful information about the unit test code coverage.

Both of the approaches have some advantages on their own. Right now I think we will go will both of them.

k-gostev commented 11 months ago

Tasks: