Skip to content

Commit

Permalink
Simplified test caller
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Sep 9, 2023
1 parent 7739941 commit e8a1b3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2023-09-09 Dirk Eddelbuettel <edd@debian.org>

* tests/tinytest.R: Simplified

2023-04-17 Dirk Eddelbuettel <edd@debian.org>

* src/Makevars: Delete unneeded filed
Expand Down
9 changes: 1 addition & 8 deletions tests/tinytest.R
@@ -1,11 +1,4 @@

if (requireNamespace("tinytest", quietly=TRUE)) {

## Set a seed to make the test deterministic
set.seed(42)

## there are several more granular ways to test files in a tinytest directory,
## see its package vignette; tests can also run once the package is installed
## using the same command `test_package(pkgName)`, or by director, or by file
tinytest::test_package("anytime", side_effects=TRUE)
tinytest::test_package("anytime")
}

0 comments on commit e8a1b3c

Please sign in to comment.