jack-ullery / AppAnvil

Graphical user interface for the AppArmor security module (in-progress)
GNU General Public License v3.0
16 stars 12 forks source link

Capture code coverage reports #35

Closed jack-ullery closed 2 years ago

jack-ullery commented 2 years ago

Description of changes

Capture code coverage

These changes modify the build, so that code coverage reports can now be captured easily. A code coverage report can be generated by running make report. Afterwards, you can view the HTML report by opening the ./report/index.html file.

Modifications to unit test build

I also changed the build process for the unit tests. Previously, the unit test would be built automatically with the main binary. Now, you must explicitly build the unit tests using make test. In doing this, the name of the resulting test binary changed from ./dist/appanvil_test to ./dist/test

Modifications to GitHub actions and README.md

Updates were made to both github/workflows/build.yml and README.md reflect the above changes.