|
18 | 18 | -------------------------------------------------------------------------------- |
19 | 19 |
|
20 | 20 | == Results ===================================================================== |
| 21 | + -- Failed tests ---------------------------------------------------------------- |
| 22 | + Error ('reporters/error-setup.R:6:1'): (code run outside of `test_that()`) |
| 23 | + Error in `h()`: ! |
| 24 | + Backtrace: |
| 25 | + x |
| 26 | + 1. +-testthat::setup(f()) |
| 27 | + 2. | \-rlang::eval_tidy(enquo(code), env = env) |
| 28 | + 3. \-f() |
| 29 | + 4. \-g() |
| 30 | + 5. \-h() |
| 31 | + |
21 | 32 | [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] |
22 | 33 |
|
23 | 34 | I believe in you! |
|
124 | 135 | i Increase this number with (e.g.) `testthat::set_max_fails(Inf)` |
125 | 136 |
|
126 | 137 | == Results ===================================================================== |
| 138 | + -- Failed tests ---------------------------------------------------------------- |
| 139 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 140 | + FALSE is not TRUE |
| 141 | + |
| 142 | + `actual`: FALSE |
| 143 | + `expected`: TRUE |
| 144 | + |
| 145 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 146 | + FALSE is not TRUE |
| 147 | + |
| 148 | + `actual`: FALSE |
| 149 | + `expected`: TRUE |
| 150 | + |
| 151 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 152 | + FALSE is not TRUE |
| 153 | + |
| 154 | + `actual`: FALSE |
| 155 | + `expected`: TRUE |
| 156 | + |
| 157 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 158 | + FALSE is not TRUE |
| 159 | + |
| 160 | + `actual`: FALSE |
| 161 | + `expected`: TRUE |
| 162 | + |
| 163 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 164 | + FALSE is not TRUE |
| 165 | + |
| 166 | + `actual`: FALSE |
| 167 | + `expected`: TRUE |
| 168 | + |
| 169 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 170 | + FALSE is not TRUE |
| 171 | + |
| 172 | + `actual`: FALSE |
| 173 | + `expected`: TRUE |
| 174 | + |
| 175 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 176 | + FALSE is not TRUE |
| 177 | + |
| 178 | + `actual`: FALSE |
| 179 | + `expected`: TRUE |
| 180 | + |
| 181 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 182 | + FALSE is not TRUE |
| 183 | + |
| 184 | + `actual`: FALSE |
| 185 | + `expected`: TRUE |
| 186 | + |
| 187 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 188 | + FALSE is not TRUE |
| 189 | + |
| 190 | + `actual`: FALSE |
| 191 | + `expected`: TRUE |
| 192 | + |
| 193 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 194 | + FALSE is not TRUE |
| 195 | + |
| 196 | + `actual`: FALSE |
| 197 | + `expected`: TRUE |
| 198 | + |
| 199 | + Failure ('reporters/fail-many.R:3:5'): Example |
| 200 | + FALSE is not TRUE |
| 201 | + |
| 202 | + `actual`: FALSE |
| 203 | + `expected`: TRUE |
| 204 | + |
127 | 205 | [ FAIL 11 | WARN 0 | SKIP 0 | PASS 0 ] |
128 | 206 | == Terminated early ============================================================ |
129 | 207 |
|
|
303 | 381 | -------------------------------------------------------------------------------- |
304 | 382 |
|
305 | 383 | == Results ===================================================================== |
| 384 | + -- Failed tests ---------------------------------------------------------------- |
| 385 | + Error ('reporters/backtraces.R:6:3'): errors thrown at block level are entraced |
| 386 | + Error in `g()`: foo |
| 387 | + Backtrace: |
| 388 | + x |
| 389 | + 1. \-f() |
| 390 | + 2. \-g() |
| 391 | + |
| 392 | + Error ('reporters/backtraces.R:11:3'): errors thrown from a quasi-labelled argument are entraced |
| 393 | + Error in `foo()`: foo |
| 394 | + Backtrace: |
| 395 | + x |
| 396 | + 1. +-testthat::expect_s3_class(foo(), "foo") |
| 397 | + 2. | \-testthat::quasi_label(enquo(object), arg = "object") |
| 398 | + 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) |
| 399 | + 4. \-foo() |
| 400 | + |
| 401 | + Error ('reporters/backtraces.R:18:3'): errors thrown from a quasi-labelled argument are entraced (deep case) |
| 402 | + Error in `foo()`: foo |
| 403 | + Backtrace: |
| 404 | + x |
| 405 | + 1. +-testthat::expect_s3_class(f(), "foo") |
| 406 | + 2. | \-testthat::quasi_label(enquo(object), arg = "object") |
| 407 | + 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) |
| 408 | + 4. \-f() |
| 409 | + 5. \-g() |
| 410 | + 6. +-testthat::expect_s3_class(foo(), "foo") |
| 411 | + 7. | \-testthat::quasi_label(enquo(object), arg = "object") |
| 412 | + 8. | \-rlang::eval_bare(expr, quo_get_env(quo)) |
| 413 | + 9. \-foo() |
| 414 | + |
| 415 | + Error ('reporters/backtraces.R:28:3'): errors thrown from a quasi-labelled argument are entraced (deep deep case) |
| 416 | + Error in `bar()`: foobar |
| 417 | + Backtrace: |
| 418 | + x |
| 419 | + 1. \-f() |
| 420 | + 2. \-g() |
| 421 | + 3. +-testthat::expect_s3_class(foo(), "foo") |
| 422 | + 4. | \-testthat::quasi_label(enquo(object), arg = "object") |
| 423 | + 5. | \-rlang::eval_bare(expr, quo_get_env(quo)) |
| 424 | + 6. \-foo() |
| 425 | + 7. \-bar() |
| 426 | + |
| 427 | + Error ('reporters/backtraces.R:35:3'): failed expect_error() prints a backtrace |
| 428 | + Error in `signaller()`: bar |
| 429 | + Backtrace: |
| 430 | + x |
| 431 | + 1. +-testthat::expect_error(f(), "foo") |
| 432 | + 2. | \-testthat:::expect_condition_matching(...) |
| 433 | + 3. | \-testthat:::quasi_capture(...) |
| 434 | + 4. | +-testthat (local) .capture(...) |
| 435 | + 5. | | \-base::withCallingHandlers(...) |
| 436 | + 6. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) |
| 437 | + 7. \-f() |
| 438 | + 8. \-signaller() |
| 439 | + |
| 440 | + Error ('reporters/backtraces.R:43:3'): Errors are inspected with `conditionMessage()` |
| 441 | + <foobar/rlang_error/error/condition> |
| 442 | + Error in `eval(code, test_env)`: dispatched |
| 443 | + Backtrace: |
| 444 | + x |
| 445 | + 1. \-rlang::abort("Wrong message", "foobar") |
| 446 | + |
| 447 | + Error ('reporters/backtraces.R:58:3'): deep stacks are shown |
| 448 | + Error in `f(x - 1)`: This is deep |
| 449 | + Backtrace: |
| 450 | + x |
| 451 | + 1. \-f(25) |
| 452 | + 2. \-f(x - 1) |
| 453 | + 3. \-f(x - 1) |
| 454 | + 4. \-f(x - 1) |
| 455 | + 5. \-f(x - 1) |
| 456 | + 6. \-f(x - 1) |
| 457 | + 7. \-f(x - 1) |
| 458 | + 8. \-f(x - 1) |
| 459 | + 9. \-f(x - 1) |
| 460 | + 10. \-f(x - 1) |
| 461 | + 11. \-f(x - 1) |
| 462 | + 12. \-f(x - 1) |
| 463 | + 13. \-f(x - 1) |
| 464 | + 14. \-f(x - 1) |
| 465 | + 15. \-f(x - 1) |
| 466 | + 16. \-f(x - 1) |
| 467 | + 17. \-f(x - 1) |
| 468 | + 18. \-f(x - 1) |
| 469 | + 19. \-f(x - 1) |
| 470 | + 20. \-f(x - 1) |
| 471 | + 21. \-f(x - 1) |
| 472 | + 22. \-f(x - 1) |
| 473 | + 23. \-f(x - 1) |
| 474 | + 24. \-f(x - 1) |
| 475 | + 25. \-f(x - 1) |
| 476 | + 26. \-f(x - 1) |
| 477 | + |
| 478 | + Failure ('reporters/backtraces.R:66:1'): (code run outside of `test_that()`) |
| 479 | + FALSE is not TRUE |
| 480 | + |
| 481 | + `actual`: FALSE |
| 482 | + `expected`: TRUE |
| 483 | + Backtrace: |
| 484 | + x |
| 485 | + 1. \-f() |
| 486 | + 2. \-g() |
| 487 | + 3. \-h() |
| 488 | + 4. \-testthat::expect_true(FALSE) |
| 489 | + |
| 490 | + Failure ('reporters/backtraces.R:69:3'): nested expectations get backtraces |
| 491 | + FALSE is not TRUE |
| 492 | + |
| 493 | + `actual`: FALSE |
| 494 | + `expected`: TRUE |
| 495 | + Backtrace: |
| 496 | + x |
| 497 | + 1. \-f() |
| 498 | + 2. \-g() |
| 499 | + 3. \-h() |
| 500 | + 4. \-testthat::expect_true(FALSE) |
| 501 | + |
306 | 502 | [ FAIL 9 | WARN 1 | SKIP 0 | PASS 1 ] |
307 | 503 |
|
308 | 504 | I believe in you! |
|
0 commit comments