Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit431640b

Browse files
committed
Migrate to {testthat} 3rd edition
1 parent2764285 commit431640b

File tree

44 files changed

+118
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+118
-137
lines changed

‎DESCRIPTION‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ Suggests:
7070
reticulate (>= 1.15),
7171
sessioninfo,
7272
shiny (>= 0.14),
73-
testthat (>=2.0.0),
73+
testthat (>=3.0.0),
7474
withr (>= 2.0.0)
7575
VignetteBuilder: knitr
7676
SystemRequirements: pandoc (>= 1.14) - https://pandoc.org
7777
Language: en-US
78+
Config/testthat/edition: 3
79+
Config/testthat/parallel: true

‎tests/testthat/test-assertions.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("assertions")
2-
31
# assert_is_flag() -------------------------------------------------------------
42

53
test_that("assert_is_flag accepts flag arguments", {

‎tests/testthat/test-build_rmd.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("build_rmd")
2-
31
# Setup ------------------------------------------------------------------------
42

53
# Create a temporary directory

‎tests/testthat/test-build_rmd_external.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("build_rmd_external")
2-
31
# Setup ------------------------------------------------------------------------
42

53
# Create a temporary workflowr project

‎tests/testthat/test-callr.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("callr")
2-
31
# Regression test: next time quickly identify behavior like callr 3.3.0
42
# https://github.com/r-lib/callr/commit/df85ab14fbbf8ca9b89f55e50089828e0ac86e9a
53
test_that("r_safe() does not write to global environment", {

‎tests/testthat/test-fig_path_ext.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("fig_path_ext")
2-
31
source("setup.R")
42

53
skip_on_cran_windows()

‎tests/testthat/test-git.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("git")
2-
31
# Setup ------------------------------------------------------------------------
42

53
# Load helper function local_no_gitconfig()

‎tests/testthat/test-git2r-merge.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("git2r-merge-conflicts")
2-
31
# Test behavior of git2r merge.git_repository with merge conflicts
42
#
53
# Will need to be updated if upstream behavior is fixed:

‎tests/testthat/test-git2r.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("git2r")
2-
31
# Setup ------------------------------------------------------------------------
42

53
library("git2r")

‎tests/testthat/test-glob.R‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context("glob")
2-
31
# Setup ------------------------------------------------------------------------
42

53
# start project in a tempdir

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp