Skip to content

Commit

Permalink
added basic tests
Browse files Browse the repository at this point in the history
closes #9
  • Loading branch information
Ellpeck committed Aug 2, 2024
1 parent 70a35dc commit 0e1855e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ Imports:
digest,
jsonlite,
rlang
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
12 changes: 12 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
# * https://testthat.r-lib.org/articles/special-files.html

library(testthat)
library(flowr)

test_check("flowr")
9 changes: 9 additions & 0 deletions tests/testthat/test-node.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test_that("find package directory", {
expect_no_error(get_default_node_base_dir())
})
test_that("install node", {
expect_no_error(install_node("22.5.1"))
})
test_that("install flowr", {
expect_no_error(install_flowr("2.0.11"))
})

0 comments on commit 0e1855e

Please sign in to comment.