public static class VisualBaselineA committed picture, and what happens when the interface stops matching it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ A missing reference is a failure, not a recording. The obvious behaviour — write the picture and pass — makes the first run of every screenshot green, which means nobody ever looks at the picture that every later run is measured against. So a missing reference writes what it drew where a human can open it, says exactly how to accept it, and fails. The same argument the graphics golden suite makes, and it is the argument for the whole technique: a suite that rewrites its own expectations when they fail is a suite that always passes.
Accepting a change is VIXEN_UPDATE_SCREENSHOTS=1, deliberately an environment variable and not an option a test can set for itself.
Fields and properties (1)
public const string DirectoryNameWhere references live when nothing says otherwise.
Methods (2)
public static string Verify(UiTest test, string name, in Bitmap rendered, ImageTolerance tolerance)Checks a picture against its reference, or records it as the new one.
public static string SourceDirectory(UiTest test)Where an accepted picture is written so that it can be committed.
Used by (1)
- UiTestVixen.Ui.Testing