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
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.