Skip to content

Commit

Permalink
Tests and checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Mar 21, 2024
1 parent d5228b0 commit 6954b60
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Package: multiverse.internals
Title: Internal Infrastructure for R-multiverse
Description: Internal Infrastructure for R-multiverse
Description: R-multiverse requires this internal internal infrastructure
package to automate curation and populate universes.
Version: 0.1.0
License: MIT + file LICENSE
URL: https://github.com/r-multiverse/multiverse.internals
Expand Down
12 changes: 7 additions & 5 deletions tests/testthat/test-assert_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ test_that("good GitHub registration", {
})

test_that("good GitLab registration", {
suppressMessages(
expect_null(
assert_package(
name = "test",
url = "https://gitlab.com/wlandau/test"
tmp <- utils::capture.output(
suppressMessages(
expect_null(
assert_package(
name = "test",
url = "https://gitlab.com/wlandau/test"
)
)
)
)
Expand Down
8 changes: 5 additions & 3 deletions tests/testthat/test-record_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ test_that("record versions from a mock repo", {
unlink(c(manifest, issues))
})

test_that("manifest can be created and updated from the actual repo", {
test_that("manifest can be created and updated from an actual repo", {
manifest <- tempfile()
issues <- tempfile()
temp <- utils::capture.output(
suppressMessages(
record_versions(
manifest = manifest,
issues = issues
issues = issues,
repo = "https://wlandau.r-universe.dev"
)
)
)
Expand All @@ -176,7 +177,8 @@ test_that("manifest can be created and updated from the actual repo", {
suppressMessages(
record_versions(
manifest = manifest,
issues = issues
issues = issues,
repo = "https://wlandau.r-universe.dev"
)
)
)
Expand Down

0 comments on commit 6954b60

Please sign in to comment.