-
Notifications
You must be signed in to change notification settings - Fork 194
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
mini.test: ignore regions in reference_screenshot
#512
Comments
Thanks for the suggestion! Indeed, having to deal with different paths in local and CI tests is somewhat of a pain. I tend to mock any related functionality in tests. Like if path comes from Having ignoreable screenshot regions is an approach I didn't think about. It is interesting, but I am not sure about the proper function API here. Some ideas:
I'll definitely think about this. |
`expect.reference_screenshot()`. Details: - Resolves #512.
Thanks again for the suggestion! This should now be (at least partially) possible with I figured that only ignoring lines is a reasonable compromise between implementation complexity and covering many use cases. |
Thanks! |
Contributing guidelines
Module(s)
mini.test
Description
I'm working on a Neovim plugin to integrate with a command-line tool
broot
. To verify its behavior, I'd like to use theexpect.reference_screenshot
function. Unfortunately,broot
includes an absolute path as part of its UI, so I get failures like this when running the tests in CI:It would be nice if I could designate 'volatile' regions of the screenshot like this and have them ignored in the
reference_screenshot
function.For instance, here I could ignore the first line.
What do you think?
The text was updated successfully, but these errors were encountered: