bunit.web.query
1.37.7
Prefix Reserved
See the version list below for details.
dotnet add package bunit.web.query --version 1.37.7
NuGet\Install-Package bunit.web.query -Version 1.37.7
<PackageReference Include="bunit.web.query" Version="1.37.7" />
paket add bunit.web.query --version 1.37.7
#r "nuget: bunit.web.query, 1.37.7"
// Install bunit.web.query as a Cake Addin #addin nuget:?package=bunit.web.query&version=1.37.7 // Install bunit.web.query as a Cake Tool #tool nuget:?package=bunit.web.query&version=1.37.7
bUnit - a testing library for Blazor components
bUnit is a testing library for Blazor Components. Its goal is to make it easy to write comprehensive, stable unit tests. With bUnit, you can:
- Setup and define components under tests using C# or Razor syntax
- Verify outcomes using semantic HTML comparer
- Interact with and inspect components as well as trigger event handlers
- Pass parameters, cascading values and inject services into components under test
- Mock
IJSRuntime
, Blazor authentication and authorization, and others
bUnit builds on top of existing unit testing frameworks such as xUnit, NUnit, and MSTest, which run the Blazor component tests in just the same way as any normal unit test. bUnit runs a test in milliseconds, compared to browser-based UI tests which usually take seconds to run.
Go to bUnit.dev to learn more.
NuGet Downloads
bUnit is available on NuGet in various incarnations. Most should just pick the bUnit package:
Name | Description | NuGet Download Link |
---|---|---|
bUnit | Includes the bUnit.core and bUnit.web packages. | |
bUnit.core | Core library that enables rendering a Blazor component in a test context. | |
bUnit.web | Adds support for testing Blazor components for the web. This includes bUnit.core. | |
bUnit.template | Template, which currently creates xUnit-based bUnit test projects only. | |
bUnit.generators | Source code generators to minimize code setup in various situations. | |
bUnit.web.query | bUnit implementation of testing-library.com's query APIs. |
To get started, head to the getting started documentation to learn more.
Sponsors
A huge thank you to the sponsors of bUnit. The higher tier sponsors are:
<table border="0"> <tr> <td align="center" width="120"> <a href="https://github.com/syncfusion"> <img class="avatar" src="https://avatars.githubusercontent.com/u/1699795?s=460" width="72" height="72" alt="@syncfusion" /> <br /> Syncfusion </a> </td> <td align="center" width="120"> <a href="https://github.com/JetBrainsOfficial"> <img class="avatar" src="https://avatars.githubusercontent.com/u/60931315?v=4" width="72" height="72" alt="@JetBrainsOfficial" /> <br /> JetBrains </a> </td> </tr> </table>
Contributors
Shout outs and a big thank you to all the contributors to the library, including those that raise issues, provide input to issues, and those who send pull requests. Thank you!
These good people have contributed code or documentation to bUnit:
<a href="https://github.com/bUnit-dev/bUnit/graphs/contributors"> <img src="https://contrib.rocks/image?repo=bUnit-dev/bUnit" /> </a>
Code of conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
.NET Foundation
This project is supported by the .NET Foundation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 3.1.32)
- Microsoft.Extensions.Logging (>= 3.1.32)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.32)
-
net5.0
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 5.0.17)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
-
net6.0
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 6.0.36)
- Microsoft.Extensions.Logging (>= 6.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.4)
-
net7.0
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 7.0.20)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
-
net8.0
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 8.0.11)
- Microsoft.Extensions.Logging (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
-
net9.0
- bunit.web (>= 1.37.7)
- Microsoft.AspNetCore.Components (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Changes in bUnit 1.37.7
### Added
- Added support for `RendererInfo` and `AssignedRenderMode` (`.net9.0`).
See the full changelog at https://github.com/bUnit-dev/bUnit/releases