Skip to content

vdiffr should push log files by default if CI envvar is defined #79

@lionel-

Description

@lionel-

Failure logs make it possible to debug failures of visual tests when they happen remotely on Travis or on CRAN checking machines. The failures are logged to a .Rout.fail file that gets displayed by Travis or on the CRAN page.

Right now vdiffr is set up so that by default it only pushes the failure log file when the NOT_CRAN environment variable is not defined. This was meant to avoid creating a log file when testthat is run interactively with devtools::test() and only create it when testthat is run via R CMD check.

However this prevents the log file to be created when NOT_CRAN is manually set on Travis. It would make sense to create the failure log when the CI environment variable is set by Travis, Appveyor, etc.

The function to modify is in utils.R:

if (!is_checking()) {
. The is_checking() predicate should be replaced by something that also checks for CI.

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