Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lionel- opened this issue Jan 7, 2020 · 0 comments
Closed

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

lionel- opened this issue Jan 7, 2020 · 0 comments
Labels

Comments

@lionel-
Copy link
Member

lionel- commented Jan 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant