Skip to content

Commit

Permalink
fix tests by ensuring srr skeleton is removed before creating
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 27, 2024
1 parent f92c501 commit 4fcd77c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: roreviewapi
Title: Plumber API to report package structure and function
Version: 0.1.0.039
Version: 0.1.0.040
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/roreviewapi",
"issueTracker": "https://github.com/ropensci-review-tools/roreviewapi/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.039",
"version": "0.1.0.040",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-editor-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ test_all <- identical (Sys.getenv ("MPADGE_LOCAL"), "true") ||
testthat::skip_if (!test_all)

test_that ("editor check", {
path <- fs::path (fs::path_temp (), "demo")
if (fs::dir_exists (path)) {
fs::dir_delete (path)
}
path <- srr::srr_stats_pkg_skeleton ()
roxygen2::roxygenise (path)
Sys.setenv ("PKGCHECK_CACHE_DIR" = fs::path_temp ())
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-srr.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ test_all <- identical (Sys.getenv ("MPADGE_LOCAL"), "true") ||
testthat::skip_if (!test_all)

test_that ("srr", {
path <- fs::path (fs::path_temp (), "demo")
if (fs::dir_exists (path)) {
fs::dir_delete (path)
}
path <- srr::srr_stats_pkg_skeleton ()

expect_message (
Expand Down

0 comments on commit 4fcd77c

Please sign in to comment.