Skip to content

testthat 3.3.2

Latest

Choose a tag to compare

@hadley hadley released this 12 Jan 14:57
  • testthat now emits OpenTelemetry traces for tests when tracing is enabled. Requires the otel and otelsdk packages (#2282).
  • default_parallel_reporter() is no longer exported; use default_reporter(parallel = TRUE) instead (#2305).
  • expect_snapshot() once again reports the original error class for base errors, rather than rlang_error (#2286).
  • expect_snapshot_file() once again works with shinytest2 on CI (#2293, #2288).
  • expect_snapshot_file() correctly reports file name if duplicated (@MichaelChirico, #2296).
  • expect_success() and expect_failure() now always report the observed number of successes and failures (#2297).
  • LlmReporter() is a new reporter designed for use by LLM coding agents. It's used automatically inside Claude Code, Cursor, and Gemini CLI, and you can set AGENT=1 to use with any coding agent (#2287).
  • local_mocked_s3_method() and local_mocked_s4_method() can now mock methods that don't already exist, and can use definition = NULL to temporarily remove a method. local_mocked_s4_method() now also works when the generic is defined in another package (#2302).
  • local_snapshotter() restores snap_dir to be the first argument for compatibility with devtools 2.4.6 (#2309).
  • test_dir() no longer runs tests in parallel if only a single file is being tested (#2305).