You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #212 I looked into adding tests. I think a pure unit testing approach is difficult here, because the whole thing depends on the Blazor runtime to do its thing with cascading parameters, lifetime events, ...
So to explore the possibilities a bit, I went down 2 routes:
This is great @luetm! Definitely go with bUnit it was design to do exactly this. It's what I use on some of the other Blazored projects and Egil is also a friend :)
Hey Chris!
As mentioned in #212 I looked into adding tests. I think a pure unit testing approach is difficult here, because the whole thing depends on the Blazor runtime to do its thing with cascading parameters, lifetime events, ...
So to explore the possibilities a bit, I went down 2 routes:
You can take a look at the (very much draft) code here: https://github.com/luetm/FluentValidation_Tests/tree/main/tests
I prefer the bunit, because it's much less code, has fewer dependencies, fewer moving parts, and runs faster.
If you generally agree with that approach, I would now create tests for all the features and test if they work as advertised. What do you think? 🙂
The text was updated successfully, but these errors were encountered: