Skip to content

Commit

Permalink
set verbose = FALSE in g.part3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmigueles committed Oct 17, 2023
1 parent ce815ee commit 18593fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test_part3_1_night.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ test_that("Part 3 identifies 1-night scenario", {
#=======================
# Create a test file for a bit over a day worth of data.
# Nmin=2000 is currently the default, but hardcoding it here in case the default changes.
create_test_acc_csv(Nmin=2000)
create_test_acc_csv(Nmin = 2000)
fn = "123A_testaccfile.csv"
dn = "output_test"
if (file.exists(dn)) unlink(dn, recursive = TRUE)

GGIR(mode = c(1:3), datadir = fn, outputdir = getwd(), studyname = "test", f0 = 1, f1 = 1,
do.report = c(), visualreport = FALSE, viewingwindow = 1,
overwrite = TRUE, do.parallel = FALSE, minimumFileSizeMB = 0)
overwrite = TRUE, do.parallel = FALSE, minimumFileSizeMB = 0,
verbose = FALSE)

out.file.path = paste0(dn, "/meta/ms3.out/", fn, ".RData")
expect_true(file.exists(out.file.path))
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test_part3_no4am.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ test_that("Part 3 runs fine on a short file not containing a full night", {

# Create a test file that doesn't contain a 4am but does contain a noon and a midnight
# (4am, noon and midnight all carry significance in the internal logic of g.sib.det)
create_test_acc_csv(Nmin=1000, starts_at_midnight = FALSE)
create_test_acc_csv(Nmin = 1000, starts_at_midnight = FALSE)
GGIR(mode = c(1:3), datadir = fn, outputdir = getwd(), studyname = "test", f0 = 1, f1 = 1,
do.report = c(), visualreport = FALSE, viewingwindow = 1,
do.parallel = FALSE, minimumFileSizeMB = 0)
do.parallel = FALSE, minimumFileSizeMB = 0, verbose = FALSE)

out.file.path = paste0(dn, "/meta/ms3.out/", fn, ".RData")
expect_true(file.exists(out.file.path))
Expand All @@ -21,10 +21,10 @@ test_that("Part 3 runs fine on a short file not containing a full night", {

# Create a test file that doesn't contain a 4am or a noon, but does have a midnight
# (4am, noon and midnight all carry significance in the internal logic of g.sib.det)
create_test_acc_csv(Nmin=720, start_time = "13:00:00")
create_test_acc_csv(Nmin = 720, start_time = "13:00:00")
GGIR(mode = c(1:3), datadir = fn, outputdir = getwd(), studyname = "test", f0 = 1, f1 = 1,
do.report = c(), visualreport = FALSE, viewingwindow = 1,
do.parallel = FALSE, minimumFileSizeMB = 0)
do.parallel = FALSE, minimumFileSizeMB = 0, verbose = FALSE)

out.file.path = paste0(dn, "/meta/ms3.out/", fn, ".RData")
expect_true(file.exists(out.file.path))
Expand Down

0 comments on commit 18593fc

Please sign in to comment.