Skip to content

Commit

Permalink
declare import
Browse files Browse the repository at this point in the history
ref #10
  • Loading branch information
wibeasley committed Sep 10, 2019
1 parent bf0d284 commit f739f68
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ README.html$
documentation-peek.pdf
documentation-for-developers/
playgrounds/
sandbox/
utility/
^\.travis\.yml$
^appveyor\.yml$
Expand Down
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Depends:
R (>= 3.0.0),
stats
Imports:
config,
dplyr,
glue,
httr (>= 1.3.0),
Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test-populate-config.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ path_out_expected <- system.file("tests/config-out-expected.yml", package = "plu
path_out_actual <- "testing/config-out-expected.yml"

test_that("Smoke Test -populate_config", {
if( !dir.exists(dirname(path_out_actual)) )
dir.create(dirname(path_out_actual))

populate_config(
path_in = path_in,
project_name = "thumann-awesomeness-1",
path_out = path_out_actual
)
})
test_that("compare -populate_config", {
if( !dir.exists(dirname(path_out_actual)) )
dir.create(dirname(path_out_actual))

populate_config(
path_in = path_in,
project_name = "thumann-awesomeness-1",
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-retrieve-file-list.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that("Retrieve cdw-skeleton", {
"cdw-skeleton-1",
destination_directory = destination
)
expect_equal(nrow(d), 57L)
expect_equal(nrow(d), 58L)
})

test_that("Download", {
Expand All @@ -32,7 +32,7 @@ test_that("Download", {
)

file_count <- length(list.files(destination, all.files = T, recursive = T))
expect_equal(file_count, 47L)
expect_equal(file_count, 48L)

unlink(destination, recursive = TRUE)
})
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-start-project.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_that("start_r_analysis_skeleton", {
)

file_count <- length(list.files(destination, all.files = T, recursive = T))
expect_equal(file_count, 49L)
expect_equal(file_count, 47L)

unlink(destination, recursive = TRUE)
})
Expand Down

0 comments on commit f739f68

Please sign in to comment.