Skip to content

Commit

Permalink
New helper package Blazorise.Tests.bUnit (#5168)
Browse files Browse the repository at this point in the history
* New helper package Blazorise.Tests.bUnit

* Remove Blazorise.Bootstrap dependency | Add Empty Icon Provider |

* Include project in NuGet pack script

* Docs | Add testing page

* formating

* Rephrase docs

* release notes

---------

Co-authored-by: Mladen Macanovic <[email protected]>
  • Loading branch information
David-Moreira and stsrki authored Dec 5, 2023
1 parent 3857df4 commit 7853252
Show file tree
Hide file tree
Showing 61 changed files with 611 additions and 535 deletions.
10 changes: 10 additions & 0 deletions Blazorise.sln
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazorise.Splitter", "Sourc
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazorise.Charts.Annotation", "Source\Extensions\Blazorise.Charts.Annotation\Blazorise.Charts.Annotation.csproj", "{4AEA29BB-7EB8-4B3D-B2E1-76E0C473EB02}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Helpers", "Helpers", "{5930C85A-4AE1-428B-BFEE-7A80970F7F3E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Blazorise.Tests.bUnit", "Source\Helpers\Blazorise.Tests.bUnit\Blazorise.Tests.bUnit.csproj", "{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -359,6 +363,10 @@ Global
{4AEA29BB-7EB8-4B3D-B2E1-76E0C473EB02}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4AEA29BB-7EB8-4B3D-B2E1-76E0C473EB02}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4AEA29BB-7EB8-4B3D-B2E1-76E0C473EB02}.Release|Any CPU.Build.0 = Release|Any CPU
{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -420,6 +428,8 @@ Global
{96334C18-5A3B-4C90-9C48-B06043AF0C68} = {9731051E-0AA7-411E-A76A-987854F034DA}
{EC28D772-D69F-418B-9720-3977850E2FDA} = {9731051E-0AA7-411E-A76A-987854F034DA}
{4AEA29BB-7EB8-4B3D-B2E1-76E0C473EB02} = {9731051E-0AA7-411E-A76A-987854F034DA}
{5930C85A-4AE1-428B-BFEE-7A80970F7F3E} = {73CD9574-5204-442D-A67C-CA7B038057C2}
{0A35F4EC-57C3-4220-9FB7-A5C2437ECBF8} = {5930C85A-4AE1-428B-BFEE-7A80970F7F3E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {205B3EA4-470F-45DA-911E-346AF7D0A9A5}
Expand Down
5 changes: 5 additions & 0 deletions Documentation/Blazorise.Docs/Layouts/DocsLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
<BarIcon IconName="IconName.BookReader" /> Usage
</BarLink>
</BarItem>
<BarItem>
<BarLink To="docs/testing">
<BarIcon IconName="IconName.CheckDouble" /> Testing
</BarLink>
</BarItem>
<BarItem>
<BarLink To="docs/templates">
<BarIcon IconName="IconName.FileAlt" /> Templates
Expand Down
9 changes: 9 additions & 0 deletions Documentation/Blazorise.Docs/Models/Snippets.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4710,6 +4710,11 @@ void ValidateCheck( ValidatorEventArgs e )
@*other validation fields*@
</Validations>";

public const string AddBlazoriseTestingExample = @"Services
.AddBlazoriseTests()
.AddBootstrapProviders()
.AddEmptyIconProvider();";

public const string AntDesignScriptsExample = @"<script src=""_content/Blazorise.AntDesign/modal.js?v=1.3.3.0"" type=""module""></script>
<script src=""_content/Blazorise.AntDesign/tooltip.js?v=1.3.3.0"" type=""module""></script>";

Expand All @@ -4722,6 +4727,8 @@ void ValidateCheck( ValidatorEventArgs e )
public const string BulmaScriptsExample = @"<script src=""_content/Blazorise.Bulma/modal.js?v=1.3.3.0"" type=""module""></script>
<script src=""_content/Blazorise.Bulma/tooltip.js?v=1.3.3.0"" type=""module""></script>";

public const string ButtonJavascriptMockTestingExample = @"JSInterop.AddBlazoriseButton();";

public const string ChartsScriptsExample = @"<script src=""_content/Blazorise.Charts/charts.js?v=1.3.3.0"" type=""module""></script>";

public const string ChartsStreamingScriptsExample = @"<script src=""_content/Blazorise.Charts.Streaming/charts.streaming.js?v=1.3.3.0"" type=""module""></script>";
Expand Down Expand Up @@ -4776,6 +4783,8 @@ void ValidateCheck( ValidatorEventArgs e )

public const string TemplatesVersionInstallExample = @"dotnet new install Blazorise.Templates::1.1.0";

public const string TestingbUnitNugetExample = @"Install-Package Blazorise.Tests.bUnit";

public const string VideoScriptsExample = @"<script src=""_content/Blazorise.Video/video.js?v=1.3.3.0"" type=""module""></script>";

public const string AnimateExample = @"<Field>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="blazorise-codeblock">
<div class="html"><pre>
Services
.AddBlazoriseTests()
.AddBootstrapProviders()
.AddEmptyIconProvider();
</pre></div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="blazorise-codeblock">
<div class="html"><pre>
JSInterop.AddBlazoriseButton();
</pre></div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="blazorise-codeblock">
<div class="html"><pre>
Install-Package Blazorise.Tests.bUnit
</pre></div>
</div>

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Services
.AddBlazoriseTests()
.AddBootstrapProviders()
.AddEmptyIconProvider();
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JSInterop.AddBlazoriseButton();
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Install-Package Blazorise.Tests.bUnit

This file was deleted.

Loading

0 comments on commit 7853252

Please sign in to comment.