Skip to content

testunit fails: expect_snapshot() requires the 3rd edition. #2214

@nunotexbsd

Description

@nunotexbsd

FreeBSD amd64
R-4.5.1

* snapshot-file/foo.r
  * snapshot-file/secret.txt
  Error: Test failures
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ...
  'custom-expectation.Rmd' using 'UTF-8'... OK
  'parallel.Rmd' using 'UTF-8'... OK
  'skipping.Rmd' using 'UTF-8'... OK
  'snapshotting.Rmd' using 'UTF-8'... failed
  'special-files.Rmd' using 'UTF-8'... OK
  'test-fixtures.Rmd' using 'UTF-8'... OK
  'third-edition.Rmd' using 'UTF-8'... failed
 ERROR
Errors in running code in vignettes:
when running code in 'snapshotting.Rmd'
  ...
Error in `edition_require(3, "expect_snapshot()")`: 

Backtrace:
    x
 1. \-testthat::expect_snapshot(cat(bullets("a")))
 2.   \-testthat:::edition_require(3, "expect_snapshot()")


  When sourcing 'snapshotting.R':
Error: Test failed
Execution halted
when running code in 'third-edition.Rmd'
  ...
Error in `edition_require(3, "expect_snapshot()")`: `expect_snapshot()` requires the 3rd edition.
Backtrace:
    x
 1. \-testthat::expect_snapshot(f())
 2.   \-testthat:::edition_require(3, "expect_snapshot()")


  When sourcing 'third-edition.R':
Error: Test failed
Execution halted

* checking re-building of vignette outputs ... SKIPPED
* DONE

Status: 2 ERRORs, 1 NOTE
See
  '/wrkdirs/usr/ports/devel/R-cran-testthat/work/testthat.Rcheck/00check.log'
for details.

*** Error code 1

Log:
00check.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions