Skip to content

Toggle the logic of skipping visual tests - #4310

Merged
yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:test/issue-4293-skip-vdiffr-on-cran
Jan 8, 2021
Merged

yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:test/issue-4293-skip-vdiffr-on-cran

Conversation

@yutannihilation

Copy link
Copy Markdown
Member

Fix #4293

At the time of implementing #4192, I was afraid that visual tests would be silently ignored on the CI (and we would oversight some bugs), so I chose the following logic:

  • When vdiffr is not available, do raise an error unless VDIFFR_RUN_TESTS envvar is explicitly set to false

but this ends up failure on CRAN checks. So, this pull request toggle the logic to the following for safety. This should fix the CRAN checks.

  • When vdiffr is not available, do NOT raise an error unless VDIFFR_RUN_TESTS envvar is explicitly set to true

@yutannihilation

yutannihilation commented Jan 7, 2021 •

Copy link
Copy Markdown
Member Author

CI failures are irrelevant to this pull request. #4311 will update the visual cases to fix these.

@yutannihilation
yutannihilation merged commit 37eb64d into tidyverse:master Jan 8, 2021
@yutannihilation
yutannihilation deleted the test/issue-4293-skip-vdiffr-on-cran branch January 8, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use vdiffr conditionally

2 participants