All Projects → bUnit-dev → bUnit

bUnit-dev / bUnit

Licence: MIT license
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.

Programming Languages

C#
18002 projects
HTML
75241 projects

Projects that are alternatives of or similar to bUnit

Cake
🍰 Cake (C# Make) is a cross platform build automation system.
Stars: ✭ 3,154 (+268.03%)
Mutual labels:  unit-testing, nuget, xunit, nunit
FakeItEasy.AutoFakeIt
A very simple, yet flexible, "AutoFaker" for FakeItEasy to easily auto generate classes with faked dependencies.
Stars: ✭ 15 (-98.25%)
Mutual labels:  unit-testing, xunit, nunit, mstest
Specflow
#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
Stars: ✭ 1,827 (+113.19%)
Mutual labels:  xunit, nunit, mstest
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (-95.33%)
Mutual labels:  nuget, blazor, razor-components
blazor-docs
Public Documentation for Telerik UI for Blazor components.
Stars: ✭ 42 (-95.1%)
Mutual labels:  blazor, razor-components, blazor-components
Bunit
A testing library for Blazor Components. You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic. You can easily interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJSRuntime, and perform snapshot testing.
Stars: ✭ 415 (-51.58%)
Mutual labels:  unit-testing, snapshot-testing, nunit
bitrix-module-bunit
BUnit - фреймворк модульного тестрования для CMS Bitrix
Stars: ✭ 20 (-97.67%)
Mutual labels:  unit-testing, xunit, bunit
blazor-ui
A collection of examples related to Telerik UI for Blazor Components: https://www.telerik.com/blazor-ui
Stars: ✭ 182 (-78.76%)
Mutual labels:  blazor, razor-components, blazor-components
blazor-ui-messages
Localization messages for Telerik UI for Blazor components: https://www.telerik.com/blazor-ui
Stars: ✭ 24 (-97.2%)
Mutual labels:  blazor, razor-components, blazor-components
Fluentassertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, .NET Core 2.1 and 3.0, as well as .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
Stars: ✭ 2,449 (+185.76%)
Mutual labels:  unit-testing, xunit, mstest
nunit.testlogger
NUnit logger for vstest platform
Stars: ✭ 48 (-94.4%)
Mutual labels:  nuget, nunit
Ghpr.nunit
Adapter for NUnit 3 (generate HTML report for NUnit 3)
Stars: ✭ 33 (-96.15%)
Mutual labels:  nuget, nunit
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (-81.8%)
Mutual labels:  unit-testing, xunit
BlazorTimeline
Responsive, vertical timeline component.
Stars: ✭ 56 (-93.47%)
Mutual labels:  nuget, blazor
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (-97.55%)
Mutual labels:  nuget, xunit
testcontainers-dotnet
dotnet port of testcontainers-java
Stars: ✭ 22 (-97.43%)
Mutual labels:  xunit, nunit
meeting-app-unit-tests-playground
Unit tests patterns when using JEST and Vue2 (vue-test-utils)
Stars: ✭ 21 (-97.55%)
Mutual labels:  unit-testing, snapshot-testing
json-snapshot.github.io
Snapshot Testing for Java
Stars: ✭ 28 (-96.73%)
Mutual labels:  unit-testing, snapshot-testing
Nunit cshaprp cheatsheet
Example implementations of each attribute available in Nunit2 unit Testing Framework using C# .NET.
Stars: ✭ 14 (-98.37%)
Mutual labels:  unit-testing, nunit
kekiri
A .NET framework that supports writing low-ceremony BDD tests using Gherkin language
Stars: ✭ 19 (-97.78%)
Mutual labels:  xunit, nunit

GitHub tag Nuget Issues Open Gitter

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. Nuget
bUnit.core Core library that enables rendering a Blazor component in a test context. Nuget
bUnit.web Adds support for testing Blazor components for the web. This includes bUnit.core. Nuget
bUnit.template Template, which currently creates xUnit-based bUnit test projects only Nuget

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:

@Progress-Telerik
Progress Telerik
@syncfusion
Syncfusion
@aws
Amazon Web Services
Hassan Rezk Habib (@hassanhabib)
Hassan Rezk Habib

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:

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].