Skip to content

Provide a set of default transformers for snapshot tests? #1822

@kevinushey

Description

@kevinushey

Motivated by what we've added in renv, it feels like some subset could be useful more broadly in testthat. (The primary motivation: it can be frustrating when you try to write a snapshot test only to find it fails on Windows on CI because of something OS-specific.)

Some options:

  • R version,
  • Package version(s),
  • Working directory (including aliased paths?)
  • R temporary directory (including aliased paths?)
  • Repository paths,
  • Library paths,
  • Elapsed times?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions