Skip to content

Commit e1f62fc

Browse files
committed
reduce threshold for coverage, extend suggest-field
1 parent 6db753e commit e1f62fc

File tree

3 files changed

+214
-178
lines changed

3 files changed

+214
-178
lines changed

.github/workflows/Features.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ jobs:
5050
run: |
5151
library(tinytest)
5252
roxygen2::roxygenize()
53-
test_covr <- covr::package_coverage()
54-
lowest_covr_value <- min(sapply(test_covr, "[[", "value"))
55-
if (lowest_covr_value < 1) stop(sprintf("Coverage of %s (<1) too low", lowest_covr_value))
53+
test_covr <- covr::percent_coverage(covr::package_coverage())
54+
if (test_covr < 90) stop(sprintf("Coverage of %s (<90) too low", lowest_covr_value))
5655
shell: Rscript {0}
5756

5857
- name: Check

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ Suggests:
2929
broom,
3030
rmarkdown,
3131
tinytest,
32-
lintr
32+
lintr,
33+
roxygen2,
34+
covr
3335
License: GPL-3
3436
VignetteBuilder: knitr
3537
RoxygenNote: 7.1.1
3638
URL: https://github.com/MarselScheer/simTool
37-
BugReports: https://github.com/MarselScheer/simTool/issues
39+
BugReports: https://github.com/MarselScheer/simTool/issues

0 commit comments

Comments
 (0)