Add FlipTexture2dEqualityComparer #178
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
FlipTexture2dEqualityComparer (optional)
FlipTexture2dEqualityCompareris a NUnit test comparer class that compares twoTexture2Dusing FLIP.Output error map image file if assertion fails.
Default output path is "
Application.persistentDataPath/TestHelper/Screenshots/TestContext.Test.Name.diff.png".You can specify the output directory and/or filename by constructor arguments.
Directory can also be specified by command line argument
-testHelperScreenshotDirectory.Usage:
Important
FlipTexture2dEqualityCompareris an optional functionality. To use it, you need to install the FlipBinding.CSharp NuGet package v1.0.0 or newer.Also, add scripting define symbol
ENABLE_FLIP_BINDINGif not installed via OpenUPM (UnityNuGet).