Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide test coverage statistics in release assets #491

Closed
fklebert opened this issue Mar 20, 2023 · 3 comments
Closed

Provide test coverage statistics in release assets #491

fklebert opened this issue Mar 20, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fklebert
Copy link
Contributor

fklebert commented Mar 20, 2023

Provide the following statistics for test coverage of the zserio runtime if they can be generated by an appropriate tool:

  • Function coverage
  • Region coverage
  • Line coverage
  • Branch coverage

The report shall be added to the release assets in a nice readable way (e.g. HTML)
Would also be nice if we can get a bagde for the readme, but if that is not straightforward, just ignore.

@fklebert fklebert added this to the 2.11 milestone Mar 20, 2023
@mikir mikir added the enhancement New feature or request label Mar 21, 2023
@mikir mikir self-assigned this Mar 21, 2023
@mikir
Copy link
Contributor

mikir commented Mar 30, 2023

We have integrated test coverage reports directly to the runtime documentation:

C++ - https://zserio.org/doc/runtime/cpp
Java - https://zserio.org/doc/runtime/java
Python - https://zserio.org/doc/runtime/python

Direct links to test coverage reports:

C++ gcc - https://zserio.org/doc/runtime/cpp/coverage/gcc
C++ clang - https://zserio.org/doc/runtime/cpp/coverage/clang
Java - https://zserio.org/doc/runtime/java/coverage
Python - https://zserio.org/doc/runtime/python/coverage

As a consequence, test coverage reports will be distributed in each release together with runtime documentation stored in zserio-[version]-runtime-libs.zip file.

GitHub badges for test coverage (C++ gcc, C++ clang, Java and Python) will be available as well.

@Roland-Homeier
Copy link

@mikir I assume it is only for the code of the runtime lib - correct? For my understanding these test are required for getting it "ASIL certificated" for the generated source code as well.
@fklebert : FYI

@mikir
Copy link
Contributor

mikir commented Mar 30, 2023

Yes, correct. This is only for code in runtime libraries.

Generated code is another story. Such tests depend on the underlying schema, used zserio compiler options and used database and on the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants