Closed OliverBack closed 3 years ago
@Egil do you have any thoughts on the bUnit test extensions?
@Egil do you have any thoughts on the bUnit test extensions?
More questions :-)
I was expecting to see a fake implementation of IToastService
, that would record any calls made to it display toasts, and allow users to assert against it. What are the ideas behind this approach?
@egil Yep. That's a fair point. We got a little bit carried away here in hindsight. You're correct, we don't need to actually render the toasts at all. We'll rework this.
@egil Yep. That's a fair point. We got a little bit carried away here in hindsight. You're correct, we don't need to actually render the toasts at all. We'll rework this.
Been there done that. My suggestion is to create a fake service that has a few query methods that users can easily combine with their assertion framework of choice.
@egil Thanks! We have updated the approach as per your suggestion. What do you think?
@chrissainty - Any idea when this PR will be completed?
I'm hoping very soon. @OliverBack any ideas when we'll be done on this?
@chrissainty, @anitagov Hopefully have the pr ready for today
Thanks for adding this feature @chrissainty . Will try to migrate to using this in September. My current approach for testing Toast messages with bunit is having issues as Blazored Toast tests fail when I run tests together or in the pipeline.