-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup GNATcov and improve test coverage (#5)
This adds the script coverage.sh to instrument and run the unit tests to generate a coverage HTML report. New tests are added to increase code coverage to 100% (MC/DC).
- Loading branch information
Showing
9 changed files
with
329 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/bin/ | ||
/alire/ | ||
/config/ | ||
*.srctrace | ||
/gnatcov_out/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
alr gnatcov instrument --level=stmt+mcdc --dump-trigger=atexit --projects cobs.gpr | ||
|
||
alr build -- --src-subdirs=gnatcov-instr --implicit-with=gnatcov_rts_full | ||
|
||
alr exec -- bin/unit_tests | ||
|
||
alr gnatcov coverage \ | ||
--annotate=html+ \ | ||
--output-dir gnatcov_out \ | ||
--level=stmt+mcdc \ | ||
--projects cobs.gpr \ | ||
*.srctrace |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.