aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2023-04-16 13:41:25 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2023-04-16 13:42:08 +0200
commit99b4554a1ce657295b1358509110f3d02155a913 (patch)
treef8f1195ca40a1e3c238077b5a1e8ad4926c08479
parent910d80dc7793490ca7bde75114215fd38ce08e73 (diff)
Add coverage target for local coverage report
I get almost 90% when testing locally
-rw-r--r--.Rbuildignore1
-rw-r--r--.gitignore1
-rw-r--r--GNUmakefile4
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$
diff --git a/.gitignore b/.gitignore
index 6cf7f403..babe89e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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;\

Contact - Imprint