Skip to content

Commit

Permalink
- fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-enzlein committed May 27, 2024
1 parent 772dde0 commit 711c12f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

# Run tests
- name: Run tests
run: R -e "testthat::test_dir('tests')"
run: R -e "source('tests/testthat.R')"

# This step will be skipped if the tests fail
# Set up Docker Buildx
Expand Down
12 changes: 7 additions & 5 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
# * https://testthat.r-lib.org/reference/test_package.html#special-files

library(testthat)
source("functions/loadAllFunctions.R")
source("functions/checkInstalledPackages.R")
checkInstalledPackages()
loadAllFunctions()

# load all functions
lapply(list.files("../functions/",
full.names = TRUE),
function(x) {
source(x)
})
checkInstalledPackages(req_file = "../req.txt")

test_dir("tests/testthat", reporter = "progress")

0 comments on commit 711c12f

Please sign in to comment.