![]() |
VOOZH | about |
dotnet add package bunit.web.query --version 2.7.2
NuGet\Install-Package bunit.web.query -Version 2.7.2
<PackageReference Include="bunit.web.query" Version="2.7.2" />
<PackageVersion Include="bunit.web.query" Version="2.7.2" />Directory.Packages.props
<PackageReference Include="bunit.web.query" />Project file
paket add bunit.web.query --version 2.7.2
#r "nuget: bunit.web.query, 2.7.2"
#:package bunit.web.query@2.7.2
#addin nuget:?package=bunit.web.query&version=2.7.2Install as a Cake Addin
#tool nuget:?package=bunit.web.query&version=2.7.2Install as a Cake Tool
👁 GitHub tag
👁 Nuget
👁 Issues Open
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:
IJSRuntime, Blazor authentication and authorization, and othersbUnit builds on top of existing unit testing frameworks such as xUnit, NUnit, MSTest and TUnit, 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.
bUnit is available on NuGet in various incarnations. Most should just pick the bUnit package:
| Name | Description | NuGet Download Link |
|---|---|---|
| bUnit | Adds support for testing Blazor components. | 👁 Nuget |
| bUnit.template | Template, which currently creates xUnit-based bUnit test projects only. | 👁 Nuget |
| bUnit.generators | Source code generators to minimize code setup in various situations. | 👁 Nuget |
| bUnit.web.query | bUnit implementation of testing-library.com's query APIs. | 👁 Nuget |
To get started, head to the getting started documentation to learn more.
| bUnit version | .NET version |
|---|---|
| 1.x | ≥ .netcore3.1 && ≤ .net 9 |
| 2.x | ≥ .net8 |
For a migration guide, see Upgrading bUnit.
A huge thank you to the sponsors of bUnit. The higher tier sponsors are:
<table border="0"> <tr> <td align="center" width="250"> <a href="https://www.testmuai.com/?utm_medium=sponsor&utm_source=bunit" target="_blank"> <img src="docs/site/sponsors/testmu.png" style="vertical-align: middle;" width="250" height="45" /> <br /> TestMu AI </a> </td> </tr> </table>
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>
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.
This project is supported by the .NET Foundation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. net11.0 net11.0 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.8.4-preview | 52 | 6/7/2026 |
| 2.8.1-preview | 56 | 6/3/2026 |
| 2.7.2 | 1,094 | 3/31/2026 |
| 2.7.1-preview | 66 | 3/31/2026 |
| 2.6.2 | 1,159 | 2/27/2026 |
| 2.5.3 | 6,771 | 1/8/2026 |
| 2.4.2 | 308 | 12/21/2025 |
| 2.3.4 | 344 | 12/18/2025 |
| 2.3.3-preview | 298 | 12/16/2025 |
| 2.2.2 | 725 | 12/8/2025 |
| 2.1.1 | 2,257 | 11/21/2025 |
| 2.0.66 | 1,151 | 11/11/2025 |
| 2.0.64-preview | 167 | 10/31/2025 |
| 2.0.62-preview | 181 | 10/19/2025 |
| 2.0.57-preview | 127 | 10/17/2025 |
| 2.0.55-preview | 183 | 10/7/2025 |
| 2.0.50-preview | 376 | 9/12/2025 |
| 2.0.49-preview | 230 | 8/30/2025 |
| 2.0.47-preview | 235 | 8/30/2025 |
| 2.0.41-preview | 363 | 6/27/2025 |
Changes in bUnit 2.7.2
### Fixed
- Implemented `InvokeConstructorAsync` on `BunitJSRuntime` and `BunitJSObjectReference` for .NET 10+, which previously threw `NotImplementedException`. Reported by [@Floopy-Doo](https://github.com/Floopy-Doo) in #1818. Fixed by [@linkdotnet](https://github.com/linkdotnet).
See the full changelog at https://github.com/bUnit-dev/bUnit/releases