-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2 #962
Comments
Regarding "Refactor out unneeded abstractions (TBD)" - It would make sense to create a ticket which unifies |
"Remove all GetAwaiter().GetResult()" We have two options here to evaluate whether or not that helps us:
|
We might wanna track all breaking changes as well as a small guide how to migrate from v1 to v2 |
For this, we probably need it as a requirement to merge any PR for v2 that there is an updated section in the change log about the breaking changes, and perhaps also a docs page that has the same content. |
Some of the design choices in the current renderer is based on the fact that we are using mixing async and sync code, but by and large I do not think a complete rewrite is necessary. That said, this would cause many side effects too, like the BunitContext.Render methods becoming async. |
I'm considering having V2 target .NET 8 only. The list of changes coming to Blazor in that release is significant, see dotnet/aspnetcore#44984. |
Quite some interesting features - let's see what makes the cut. |
Maybe another input / proposal from my side:
And there are items I missed ... so all in all kind of a big bang. Version 1 is almost 3 years old and ready to go to kindergarten ;) I do think your initial thoughts are a valid package for |
Thanks, Steven. I prototyped on the AngleSharp factories one, and it turns out it won't work. The hooks available in AngleSharp to control the nodes being created are incomplete, so that approach is unfortunately out of the picture. The "mock certain things" refers to an abstraction around mocking/faking JSInterop, right? To be honest, considering the time limit we have, that may not make it. I won't rule out keeping .NET6/.NET7 support around for now, unless there are too many |
With the latest preview 3 of ASP.NET Core, the For v2 we could evaluate if the |
Yeah it's not meant for us. |
Lets track this using the milestone feature instead. |
This is the parent issue used to track all the changes we want to include in bUnit v2:
v1
andv2
#1205TestContext.RenderTree
. Users can easily do this themselves. Investigate the usage of this feature.TestServiceProvider
toBunitServiceProvider
RenderedComponent
type.Render(renderfragment)
would returnRenderedComponent<BunitRootComponent>
.RenderedComponent
should inherit fromComponentState
Renderer
to simplify codeTestContext
toBunitContext
#963GetAwaiter().GetResult()
BunitContext
, oneBunitRenderer
perRender()
call #1018The text was updated successfully, but these errors were encountered: