Does bUnit handles Multi-threaded test execution? #1804
-
|
Hi, [assembly: Parallelizable(ParallelScope.Fixtures)]in our NUnit + bUnit tests to speed up execution. I’m wondering how well bUnit handles this, or whether it’s something that might bite us later. I know bUnit has But, we don’t bypass them for cases like: var bar = Context.Render<MudAppBar>();Also, are there any plans to add a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @ScarletKuro. Using bUnit does not have much state (the We are not relying on static parts, so from that perspective, it is safe to use. Can I ask what exactly you want from:
I am asking because the |
Beta Was this translation helpful? Give feedback.
Hey @ScarletKuro.
Using
FixtureLifeCycleAttribute.InstancePerTestif that is applicable for you, should make it faster and I don't see a problem then. Alternatively, you can create a newBunitContextper test-case, but that needs refactoring-effort.bUnit does not have much state (the
RenderTreemight be the only important one). The underlying Blazor-Renderer also doesn't store state to my knowledge.We are not relying on static parts, so from that perspective, it is safe to use.
Can I ask what exactly you want from:
I am asking because the
Rendercall is a non-blocking eventhough it might doesn't seem so. If yourOnIniti…