AvaloniaUI / Avalonia.Xaml.Behaviors

Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
MIT License
385 stars 46 forks source link

Use Verify.Avalonia #138

Closed SimonCropp closed 1 year ago

wieslawsoltes commented 1 year ago

@SimonCropp Can UsesVerify have conditional usage depending on Platform, sometime it's tricky to get font rendering right on Linux/macOS - see current PR fails now, added explicit FontFamily, hope it will help, but it's not always possible.

wieslawsoltes commented 1 year ago

@SimonCropp Looks like I can use UniqueForOSPlatform()

wieslawsoltes commented 1 year ago

@SimonCropp I have switched to mono font for all OSs and added separate png's for each OS. But now I get random failures using Verify

wieslawsoltes commented 1 year ago

@SimonCropp it's not the issue with comparers, it runs ok on all local machines (macOS, Linux and Windows), it's issue running unit tests on CI where it randomly fails

wieslawsoltes commented 1 year ago

@SimonCropp thanks for PR, merged!

SimonCropp commented 1 year ago

out of curiosity. what method of snapshot management are you using? DiffEngineTray / Rider test runner support etc?

wieslawsoltes commented 1 year ago

out of curiosity. what method of snapshot management are you using? DiffEngineTray / Rider test runner support etc?

Manual one for now