Skip to content

Commit

Permalink
Update test-rix.R
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues authored Sep 18, 2024
1 parent a55d4cf commit c2a9351
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/testthat/test-rix.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
testthat::test_that("rix(), ide is 'rstudio', Linux", {
skip_on_cran()
skip_if(Sys.info()["sysname"] == "Darwin")

path_default_nix <- paste0(
Expand Down Expand Up @@ -48,6 +49,7 @@ testthat::test_that("rix(), ide is 'rstudio', Linux", {


testthat::test_that("rix(), ide is 'other' or 'code'", {
skip_on_cran()
path_default_nix <- paste0(
tempdir(), paste0(sample(letters, 5), collapse = "")
)
Expand Down Expand Up @@ -114,6 +116,7 @@ testthat::test_that("rix(), ide is 'other' or 'code'", {


testthat::test_that("Quarto gets added to sys packages", {
skip_on_cran()
path_default_nix <- normalizePath(tempdir())

save_default_nix_test <- function(pkgs, interface, path_default_nix) {
Expand Down Expand Up @@ -162,6 +165,7 @@ testthat::test_that("Quarto gets added to sys packages", {

testthat::test_that("If on darwin and ide = rstudio, raise warning", {
skip_if(Sys.info()["sysname"] != "Darwin")
skip_on_cran()

path_default_nix <- normalizePath(tempdir())

Expand Down Expand Up @@ -217,6 +221,7 @@ testthat::test_that("If R version is 4.4.0, raise warning", {
})

testthat::test_that("If R version is <= 4.1.1, raise warning", {
skip_on_cran()
path_default_nix <- tempdir()

save_default_nix_test <- function(path_default_nix) {
Expand Down Expand Up @@ -272,6 +277,7 @@ testthat::test_that("If on ide = rstudio, but no R packages, raise error", {
})

testthat::test_that("If R version is == 3.5.3, raise warning", {
skip_on_cran()
path_default_nix <- tempdir()

save_default_nix_test <- function(path_default_nix) {
Expand Down Expand Up @@ -299,6 +305,7 @@ testthat::test_that("If R version is == 3.5.3, raise warning", {
})

testthat::test_that("rix(), bleeding_edge", {
skip_on_cran()
path_default_nix <- paste0(
tempdir(), paste0(sample(letters, 5), collapse = "")
)
Expand Down Expand Up @@ -348,6 +355,7 @@ testthat::test_that("rix(), bleeding_edge", {
})

testthat::test_that("rix(), frozen_edge", {
skip_on_cran()
# because of the sed command, this will only work on Linux
skip_if(Sys.info()["sysname"] != "Linux")

Expand Down Expand Up @@ -412,6 +420,7 @@ testthat::test_that("rix(), frozen_edge", {


testthat::test_that("rix(), only one Github package", {
skip_on_cran()
path_default_nix <- paste0(
tempdir(), paste0(sample(letters, 5), collapse = "")
)
Expand Down Expand Up @@ -451,6 +460,7 @@ testthat::test_that("rix(), only one Github package", {


testthat::test_that("rix(), conclusion message", {
skip_on_cran()
path_default_nix <- paste0(
tempdir(), paste0(sample(letters, 5), collapse = "")
)
Expand Down Expand Up @@ -482,6 +492,7 @@ testthat::test_that("rix(), conclusion message", {


testthat::test_that("rix(), warning message if rix_init() already called", {
skip_on_cran()
testthat::skip_on_os(os = c("windows", "mac"))

path_default_nix <- paste0(
Expand Down

0 comments on commit c2a9351

Please sign in to comment.