Improve coverage support#2221
Merged
borisbat merged 6 commits intoGaijinEntertainment:masterfrom Mar 10, 2026
Merged
Conversation
b7ff540 to
88507e9
Compare
636f374 to
0adb588
Compare
0adb588 to
937152e
Compare
c5a0ba0 to
6a86ef4
Compare
Return error if any file is failed to compile in aot batch.
Unify extra modules so it is not required to patch compileDaScript to add new dependency anymore.
Add branches and functions to coverage macro. Now coverage can be run using: `./bin/daslang utils/dascov/main.das -- <your arguments>`
Add coverage measurements to tests. Also add them to CI.
Add parsing of lcov file to obtain summary coverage.
This tests was AI generated using coverage information. 1. Run all tests `./bin/daslang dastest/dastest.das -- --cov-path c.lcov --test tests/ 2. Get summary `./bin/daslang utils/dascov/main.das -- c.lcov --exclude tests` 3. Ask your favorite AI to write tests for uncovered files
6a86ef4 to
cad1107
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add per file per function lines and branches coverage. Two outputs are supported, short format:
And lcov format:
LCOV can be displayed in browser or somewhere else, using
lcovutility. Or it can be parsed back and printed as a summary byutils/dascov/main.das.