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

Toggle the logic of skipping visual tests #4310

Conversation

yutannihilation
Copy link
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
Copy link
Member Author

yutannihilation commented Jan 7, 2021

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