Skip to content
Discussion options

You must be logged in to vote

Hey @ScarletKuro.

Using FixtureLifeCycleAttribute.InstancePerTest if that is applicable for you, should make it faster and I don't see a problem then. Alternatively, you can create a new BunitContext per test-case, but that needs refactoring-effort.

bUnit does not have much state (the RenderTree might 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:

Also, are there any plans to add a RenderAsync to avoid blocking?

I am asking because the Render call is a non-blocking eventhough it might doesn't seem so. If your OnIniti…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ScarletKuro
Comment options

@linkdotnet
Comment options

Answer selected by ScarletKuro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants