Add code coverage

Add another target in the makefile to run code coverage.
This commit is contained in:
Robin Malley 2021-09-12 17:37:12 +00:00
parent de76d31fe8
commit e0a8b3d60a
1 changed files with 6 additions and 0 deletions

View File

@ -129,3 +129,9 @@ smr.so : $(src_files) conf/smr.conf conf/build.conf
test : $(built) test : $(built)
$(Q)$(CD) kore_chroot && busted -v --exclude-tags slow $(Q)$(CD) kore_chroot && busted -v --exclude-tags slow
cov : $(built)
$(Q)$(RM) kore_chroot/luacov.stats.out
$(Q)$(CD) kore_chroot && busted -v -c --exclude-tags slow
$(Q)$(CD) kore_chroot && luacov $(built)
$(Q)$($ECHO) "open kore_chroot/luacov.report.out to view coverage results."