From 0151a85392b0dec6247b3305bd5cb4f829e8aea4 Mon Sep 17 00:00:00 2001 From: Ross Armstrong <52817125+rossarmstrong@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:11:04 +1100 Subject: [PATCH] Initial commit --- .Rbuildignore | 1 + DESCRIPTION | 1 + codecov.yml | 14 ++++++++++++++ dev/02_dev.R | 3 ++- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.Rbuildignore b/.Rbuildignore index 5e47bc0..6fbe57b 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -6,3 +6,4 @@ dev_history.R $run_dev.* ^\.github$ ^LICENSE\.md$ +^codecov\.yml$ diff --git a/DESCRIPTION b/DESCRIPTION index 2999c88..2eb9a86 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,6 +12,7 @@ Imports: shiny (>= 1.7.4), shinydashboard (>= 0.7.2) Suggests: + covr, spelling, testthat (>= 3.0.0) Config/testthat/edition: 3 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..04c5585 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +comment: false + +coverage: + status: + project: + default: + target: auto + threshold: 1% + informational: true + patch: + default: + target: auto + threshold: 1% + informational: true diff --git a/dev/02_dev.R b/dev/02_dev.R index d8759f9..0e760d4 100644 --- a/dev/02_dev.R +++ b/dev/02_dev.R @@ -69,7 +69,8 @@ devtools::build_vignettes() ## Code Coverage---- ## Set the code coverage service ("codecov" or "coveralls") -usethis::use_coverage() +#usethis::use_coverage() +usethis::use_coverage("codecov") # Create a summary readme for the testthat subdirectory covrpage::covrpage()