bunit.web.query
1.26.27-preview.geb23ca9882
Prefix Reserved
See the version list below for details.
dotnet add package bunit.web.query --version 1.26.27-preview.geb23ca9882
NuGet\Install-Package bunit.web.query -Version 1.26.27-preview.geb23ca9882
<PackageReference Include="bunit.web.query" Version="1.26.27-preview.geb23ca9882" />
paket add bunit.web.query --version 1.26.27-preview.geb23ca9882
#r "nuget: bunit.web.query, 1.26.27-preview.geb23ca9882"
// Install bunit.web.query as a Cake Addin #addin nuget:?package=bunit.web.query&version=1.26.27-preview.geb23ca9882&prerelease // Install bunit.web.query as a Cake Tool #tool nuget:?package=bunit.web.query&version=1.26.27-preview.geb23ca9882&prerelease
bUnit - a testing library for Blazor components
<a href="https://www.telerik.com/blazor-ui?utm_source=egilhansen&utm_medium=cpm&utm_campaign=blazor-trial-readme-sponsored-message#gh-light-mode-only"> <img align="right" width="300" src="https://raw.githubusercontent.com/bUnit-dev/bUnit/main/docs/site/sponsors/progress-ad-2022-light-mode.svg#gh-light-mode-only" /> </a> <a href="https://www.telerik.com/blazor-ui?utm_source=egilhansen&utm_medium=cpm&utm_campaign=blazor-trial-readme-sponsored-message#gh-dark-mode-only"> <img align="right" width="300" src="https://raw.githubusercontent.com/bUnit-dev/bUnit/main/docs/site/sponsors/progress-ad-2022-dark-mode.svg#gh-dark-mode-only" /> </a>
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 |
To get started, head to the getting started documentation to learn more.
Sponsors
A huge thank you to the sponsors of my work with bUnit. The higher tier sponsors are:
<table border="0"> <tr> <td align="center" width="120"> <a href="https://github.com/Progress-Telerik"> <img src="https://avatars.githubusercontent.com/u/57092419?s=460" alt="@Progress-Telerik" class="avatar" width="72" height="72" /> <br /> Progress Telerik </a> </td> <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/aws"> <img class="avatar" src="https://avatars.githubusercontent.com/u/2232217?s=200&v=4" width="72" height="72" alt="@aws" /> <br /> Amazon Web Services </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. |
.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
- Microsoft.AspNetCore.Components (>= 3.1.22)
- Microsoft.Extensions.Logging (>= 3.1.22)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.22)
-
net5.0
- Microsoft.AspNetCore.Components (>= 5.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
-
net6.0
- Microsoft.AspNetCore.Components (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.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.
Version | Downloads | Last updated |
---|---|---|
2.0.33-preview | 215 | 7/21/2024 |
1.36.0 | 227 | 11/12/2024 |
1.35.3 | 35 | 11/12/2024 |
1.33.1-preview | 43 | 10/7/2024 |
1.31.1-preview | 63 | 8/14/2024 |
1.28.4-preview | 1,890 | 3/17/2024 |
1.26.61-preview.g17cfa782a0 | 134 | 12/17/2023 |
1.26.29-preview.ga9c0cd8510 | 90 | 12/12/2023 |
1.26.29-preview.g9431b069b0 | 77 | 12/12/2023 |
1.26.29-preview.g91e9e2287f | 81 | 12/10/2023 |
1.26.29-preview.g6269f42046 | 74 | 12/12/2023 |
1.26.29-preview.g1595589333 | 73 | 12/13/2023 |
1.26.28-preview.g08ea910651 | 75 | 12/10/2023 |
1.26.27-preview.geb23ca9882 | 82 | 12/8/2023 |
1.26.27-preview.ge5c30f7b82 | 67 | 12/8/2023 |
1.26.26-preview.g3fdaceb6d0 | 87 | 11/25/2023 |
1.26.25-preview.gf8662d54ff | 69 | 11/25/2023 |
1.26.25-preview.ga796d3d959 | 73 | 11/25/2023 |
1.26.25-preview.g43750dfc46 | 88 | 11/25/2023 |
1.26.25-preview.g028ac0e5cc | 77 | 11/25/2023 |
1.26.24-preview.ge6af60b555 | 75 | 11/24/2023 |
1.26.17-preview | 112 | 11/23/2023 |
1.26.4-preview | 113 | 11/20/2023 |
1.26.1-preview | 111 | 11/17/2023 |
1.25.3 | 4,992 | 11/14/2023 |
1.25.2-preview | 67 | 11/13/2023 |
1.25.1-preview | 99 | 10/21/2023 |
Changes in bUnit 1.26.27-preview.geb23ca9882
### Changed
- Upgraded AngleSharp to 1.0.7.
### Fixed
- When the `TestContext` was disposed, the Blazor Renderer itself didn't dispose components under test. By [@linkdotnet](https://github.com/linkdotnet).
See the full changelog at https://github.com/bUnit-dev/bUnit/releases