Skip to content

Commit a977014

Browse files
committed
add more skips in tests for time
1 parent 4f89de4 commit a977014

7 files changed

Lines changed: 23 additions & 7 deletions

File tree

.aspell/WORDLIST.rds

70 Bytes
Binary file not shown.

.aspell/defaults.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# .aspell/defaults.R
2+
Rd_files <- vignettes <- R_files <- description <- list(
3+
encoding = "UTF-8",
4+
language = "en",
5+
dictionaries = c("en_stats", "WORDLIST")
6+
)

CRAN-SUBMISSION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
Version: 0.6.0
2-
Date: 2025-07-07 11:33:55 UTC
3-
SHA: fe50fc26ccca8ffa27d8683963fd05f92d107a71
1+
Version: 0.6.2
2+
Date: 2025-07-14 12:42:57 UTC
3+
SHA:
4+
4f89de452e7f4ca0fd697d176b5a9c950fbbdf28

inst/WORDLIST

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/testthat/test_choices.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,11 @@ test_that("No-choice option works correctly", {
211211
# =============================================================================
212212
# PARAMETER RECOVERY TESTS
213213
# =============================================================================
214+
# All of these are skipped on CRAN as they take much longer to run
214215

215216
test_that("Fixed parameters can be recovered accurately", {
216217
skip_if_not(logitr_available, "logitr package not available")
218+
skip_on_cran() # Skip on CRAN due to computation time
217219

218220
profiles <- setup_choice_test_profiles()
219221

@@ -259,6 +261,7 @@ test_that("Fixed parameters can be recovered accurately", {
259261

260262
test_that("Random parameters can be recovered accurately", {
261263
skip_if_not(logitr_available, "logitr package not available")
264+
skip_on_cran() # Skip on CRAN due to computation time
262265

263266
profiles <- setup_choice_test_profiles()
264267

@@ -343,6 +346,7 @@ test_that("Random parameters can be recovered accurately", {
343346

344347
test_that("No-choice parameters can be recovered accurately", {
345348
skip_if_not(logitr_available, "logitr package not available")
349+
skip_on_cran() # Skip on CRAN due to computation time
346350

347351
profiles <- setup_choice_test_profiles()
348352

@@ -391,6 +395,7 @@ test_that("No-choice parameters can be recovered accurately", {
391395

392396
test_that("Interaction parameters can be recovered accurately", {
393397
skip_if_not(logitr_available, "logitr package not available")
398+
skip_on_cran() # Skip on CRAN due to computation time
394399

395400
# Simpler profiles for interactions
396401
profiles_int <- cbc_profiles(
@@ -584,6 +589,7 @@ test_that("Choice simulation completes in reasonable time", {
584589

585590
test_that("Choices work with different design methods", {
586591
profiles <- setup_choice_test_profiles()
592+
skip_on_cran() # Skip on CRAN due to computation time
587593

588594
priors <- cbc_priors(
589595
profiles = profiles,

tests/testthat/test_design.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,10 @@ test_that("Random design with no-choice works", {
229229
# =============================================================================
230230
# METHOD-SPECIFIC TESTS
231231
# =============================================================================
232+
# These are skipped on CRAN as they take too long to run
232233

233234
test_that("Greedy methods work with simple priors", {
235+
skip_on_cran() # Skip on CRAN due to computation time
234236
profiles <- setup_test_profiles()
235237
priors <- setup_test_priors(profiles, "simple")
236238

@@ -260,6 +262,7 @@ test_that("Greedy methods work with simple priors", {
260262

261263
test_that("Optimal methods work with simple priors", {
262264
skip_if_not_installed("idefix")
265+
skip_on_cran() # Skip on CRAN due to computation time
263266

264267
profiles <- setup_test_profiles()
265268
priors <- setup_test_priors(profiles, "simple")

tests/testthat/test_power.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ test_that("Custom parameter specifications work", {
301301
# =============================================================================
302302
# STATISTICAL VALIDATION TESTS
303303
# =============================================================================
304+
# These are skipped on CRAN as they take too long to run
304305

305306
test_that("Power increases with sample size", {
306307
skip_if_not(logitr_available, "logitr package not available")
@@ -346,6 +347,7 @@ test_that("Standard errors decrease with sample size", {
346347
})
347348

348349
test_that("Power analysis results are reproducible", {
350+
skip_on_cran() # Skip on CRAN due to computation time
349351
skip_if_not(logitr_available, "logitr package not available")
350352

351353
test_data <- setup_small_power_data()
@@ -523,9 +525,11 @@ test_that("Power analysis works with no-choice data", {
523525
# =============================================================================
524526
# PERFORMANCE TESTS
525527
# =============================================================================
528+
# These are skipped on CRAN as they take too long to run
526529

527530
test_that("Power analysis completes in reasonable time", {
528531
skip_if_not(logitr_available, "logitr package not available")
532+
skip_on_cran() # Skip on CRAN due to computation time
529533

530534
test_data <- setup_small_power_data()
531535

0 commit comments

Comments
 (0)