diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-16 13:41:25 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-16 13:42:08 +0200 |
commit | 99b4554a1ce657295b1358509110f3d02155a913 (patch) | |
tree | f8f1195ca40a1e3c238077b5a1e8ad4926c08479 | |
parent | 910d80dc7793490ca7bde75114215fd38ce08e73 (diff) |
Add coverage target for local coverage report
I get almost 90% when testing locally
-rw-r--r-- | .Rbuildignore | 1 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | GNUmakefile | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/.Rbuildignore b/.Rbuildignore index 2f638ecb..0ee54702 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,7 @@ ^_pkgdown\.yml$ ^\.travis\.yml$ ^codemeta\.json$ +^coverage$ ^docs$ ^log$ ^mkin.Rcheck$ @@ -1,4 +1,5 @@ docs/articles/*_cache/ +coverage/ install.log inst/rmarkdown/templates/hierarchical_kinetics/skeleton/skeleton_cache inst/rmarkdown/templates/hierarchical_kinetics/skeleton/skeleton_files diff --git a/GNUmakefile b/GNUmakefile index 42df55d5..d43a9026 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -121,6 +121,10 @@ pd_all: roxygen "$(RBIN)/Rscript" -e "pkgdown::build_site(run_dont_run = TRUE)" git add -A +coverage: + mkdir -p docs/dev/coverage + "$(RBIN)/Rscript" -e "covr::report(file = 'coverage/coverage.html')" + r-forge: git archive main > $(HOME)/git/mkin/mkin.tar;\ cd $(RFDIR) && rm -r `ls` && tar -xf $(HOME)/git/mkin/mkin.tar;\ |