expect_output_file: Do you expect the output/result to equal a known good value?

View source: R/expect-known.R

expect_output_fileR Documentation

Do you expect the output/result to equal a known good value?

Description

expect_output_file() behaves identically to expect_known_output().

Usage

expect_output_file(
  object,
  file,
  update = TRUE,
  ...,
  info = NULL,
  label = NULL,
  print = FALSE,
  width = 80
)

3rd edition

[Deprecated]

expect_output_file() is deprecated in the 3rd edition; please use expect_snapshot_output() and friends instead.


testthat documentation built on Nov. 25, 2025, 5:09 p.m.