Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(cucumber)
  > 
  > test_check("cucumber")
  [ FAIL 17 | WARN 0 | SKIP 5 | PASS 127 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-examples.R:93:5', 'test-validate.R:3:5',
    'test-validate.R:32:7'
  • R.version$status == "Under development (unstable)" is TRUE (2):
    'test-examples.R:57:5', 'test-examples.R:84:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-examples.R:40:5'): test: should run one feature ────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("one_feature") at test-examples.R:40:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:44:5'): test: should run multiple features ──────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("multiple_features") at test-examples.R:44:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:48:5'): test: should run with box ───────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("box_support") at test-examples.R:48:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:62:5'): test: should run a Scenario with Given, When, Then, And, But keywords ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("long_scenario") at test-examples.R:62:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:66:5'): test: should run a Scenario with a Table ────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("table") at test-examples.R:66:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:70:5'): test: should run a Scenario with a docstring ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("docstring") at test-examples.R:70:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:74:5'): test: should run a Scenario with comments ───
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("comments") at test-examples.R:74:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:79:5'): test: should run before and after hooks ─────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("hooks") at test-examples.R:79:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:89:5'): test: should run a Scenario with custom parameters ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("custom_parameters") at test-examples.R:89:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:98:5'): test: should work with an arbitrary test directory ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("custom_test_dir", "tests/e2e") at test-examples.R:98:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:102:5'): test: should report success with `testthat::test_dir` ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("with_testthat_success") at test-examples.R:102:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:106:5'): test: should report failure with `testthat::test_dir` ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("with_testthat_failure") at test-examples.R:106:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:110:5'): test: should work with loading steps from setup files ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("testthat_setup_files") at test-examples.R:110:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:114:5'): test: should work with Scenario Outline ────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("scenario_outline") at test-examples.R:114:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:118:5'): test: shouldn't run testthat test files ────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("with_test_files") at test-examples.R:118:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:122:5'): test: should work with testthat filtering ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─cucumber (local) test_example("with_testthat_filtering", filter = "guess_the_word$") at test-examples.R:122:5
   2.   ├─cucumber (local) .with_example_dir(...) at test-examples.R:26:3
   3.   │ └─withr::with_dir(...) at test-examples.R:19:3
   4.   │   └─base::force(code)
   5.   └─cucumber (local) .expect_snapshot(...) at test-examples.R:27:5
   6.     └─testthat (local) .fn(...)
   7.       └─rlang::cnd_signal(state$error)
  ── Error ('test-examples.R:151:7'): test: should run tests with custom loading of steps and support code ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. ├─cucumber (local) .with_example_dir(...) at test-examples.R:139:5
   2. │ └─withr::with_dir(...) at test-examples.R:19:3
   3. │   └─base::force(code)
   4. └─cucumber (local) .expect_snapshot(.test()) at test-examples.R:151:7
   5.   └─testthat (local) .fn(...)
   6.     └─rlang::cnd_signal(state$error)
  
  [ FAIL 17 | WARN 0 | SKIP 5 | PASS 127 ]
  Error: Test failures
  Execution halted