Skip to content

Commit 053cf3c

Browse files
authored
Bunit rename (#57)
* Changed library name to bUnit and updated namespaces to match * Updated samples * Update CI.yml * Update CI.yml * Update nuget-pack-push.yml
1 parent aed5ff3 commit 053cf3c

File tree

141 files changed

+532
-531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+532
-531
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: dotnet pack template/ -c Release -o ${GITHUB_WORKSPACE}/template -p:version=$VERSION -p:PackageVersion=$VERSION
3838
- name: Verifying template
3939
run: |
40-
dotnet new --install ${GITHUB_WORKSPACE}/template/Razor.Components.Testing.Library.Template.$VERSION.nupkg
40+
dotnet new --install ${GITHUB_WORKSPACE}/template/bunit.template.$VERSION.nupkg
4141
dotnet new razortest -o ${GITHUB_WORKSPACE}/Test
4242
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/lib
4343
dotnet test ${GITHUB_WORKSPACE}/Test

.github/workflows/nuget-pack-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: dotnet pack template/ -c Release -o ${GITHUB_WORKSPACE}/template -p:version=$VERSION -p:PackageVersion=$VERSION
4141
- name: Verifying template
4242
run: |
43-
dotnet new --install ${GITHUB_WORKSPACE}/template/Razor.Components.Testing.Library.Template.$VERSION.nupkg
43+
dotnet new --install ${GITHUB_WORKSPACE}/template/bunit.template.$VERSION.nupkg
4444
dotnet new razortest -o ${GITHUB_WORKSPACE}/Test
4545
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/lib
4646
dotnet test ${GITHUB_WORKSPACE}/Test

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[![Issues Open](https://img.shields.io/github/issues/egil/razor-components-testing-library.svg?style=flat-square&logo=github&style=flat-square)](https://github.com/egil/razor-components-testing-library/issues)
55
[![Gitter](https://img.shields.io/gitter/room/razor-components-testing-library/community?logo=gitter&style=flat-square)](https://gitter.im/razor-components-testing-library/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
66

7-
# Blazor Components Testing Library
7+
# bUnit
88

9-
A unit 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.
9+
**bUnit**, previously known as **Blazor Components Testing Library**, is a unit 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.
1010

1111
This library's goal is to make it easy to write _comprehensive, stable unit tests_ for Blazor Components/Razor Components. To see how, head to the Wiki pages:
1212

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E006E9A4-F55
1515
EndProject
1616
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{C929375E-BD70-4B78-88C1-BDD1623C3365}"
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testing.Library", "src\Egil.RazorComponents.Testing.Library.csproj", "{AA96790B-67C9-4141-ACDB-037C8DC092EC}"
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit", "src\bunit.csproj", "{AA96790B-67C9-4141-ACDB-037C8DC092EC}"
1919
EndProject
20-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.RazorComponents.Testing.Library.Tests", "tests\Egil.RazorComponents.Testing.Library.Tests.csproj", "{04E0142A-33CC-4E30-B903-F1370D94AD8C}"
20+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.tests", "tests\bunit.tests.csproj", "{04E0142A-33CC-4E30-B903-F1370D94AD8C}"
2121
EndProject
22-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Egil.Razor.Components.Testing.Library.Template", "template\Egil.Razor.Components.Testing.Library.Template.csproj", "{FB46378D-BFB8-4C72-9CA3-0407D4665218}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.template", "template\bunit.template.csproj", "{FB46378D-BFB8-4C72-9CA3-0407D4665218}"
2323
EndProject
2424
Global
2525
GlobalSection(SolutionConfigurationPlatforms) = preSolution

sample/SampleApp.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp", "src\SampleApp.
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp.Tests", "tests\SampleApp.Tests.csproj", "{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}"
99
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit", "..\src\bunit.csproj", "{CCD48527-4741-446F-8D99-E8C1F8A31336}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{04F6D258-F69C-4BB5-87C5-3813C3CE33D8}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{CCD48527-4741-446F-8D99-E8C1F8A31336}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{CCD48527-4741-446F-8D99-E8C1F8A31336}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{CCD48527-4741-446F-8D99-E8C1F8A31336}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{CCD48527-4741-446F-8D99-E8C1F8A31336}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

sample/src/Components/DismissingEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace Egil.RazorComponents.Testing.SampleApp.Components
7+
namespace Bunit.SampleApp.Components
88
{
99
public class DismissingEventArgs
1010
{

sample/src/Components/ThemeInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace Egil.RazorComponents.Testing.SampleApp.Components
7+
namespace Bunit.SampleApp.Components
88
{
99
public class ThemeInfo
1010
{

sample/src/Data/ITodoService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.Threading.Tasks;
33

4-
namespace Egil.RazorComponents.Testing.SampleApp.Data
4+
namespace Bunit.SampleApp.Data
55
{
66
public interface ITodoService
77
{

sample/src/Data/IWeatherForecastService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Threading.Tasks;
33

4-
namespace Egil.RazorComponents.Testing.SampleApp.Data
4+
namespace Bunit.SampleApp.Data
55
{
66
public interface IWeatherForecastService
77
{

sample/src/Data/Localizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Threading.Tasks;
55
using Microsoft.AspNetCore.Components;
66

7-
namespace Egil.RazorComponents.Testing.SampleApp.Data
7+
namespace Bunit.SampleApp.Data
88
{
99
public class Localizer
1010
{

0 commit comments

Comments
 (0)