Skip to content

Commit 4a8a30d

Browse files
authored
Test output improvement #110 (#111)
* Set the watchtest to use Release mode * Applied to the whole project
1 parent 493118d commit 4a8a30d

29 files changed

+33
-46
lines changed

BlazorMeetsWebForms.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionInfo", "SolutionInf
3838
version.json = version.json
3939
EndProjectSection
4040
EndProject
41+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "watch", "watch", "{A4769DEE-1006-4D87-B20E-E875C556B3E8}"
42+
ProjectSection(SolutionItems) = preProject
43+
scripts\watch.csproj = scripts\watch.csproj
44+
scripts\watchtest = scripts\watchtest
45+
EndProjectSection
46+
EndProject
4147
Global
4248
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4349
Debug|Any CPU = Debug|Any CPU

scripts/watchtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
dotnet watch -p watch.csproj msbuild /t:test -verbosity:quiet
2+
dotnet watch -p watch.csproj msbuild /t:test -verbosity:quiet -p:configuration=Release

src/BlazorWebFormsComponents.Test/DataBinder/Eval_SimpleListView.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{
1818

1919
var cut = GetComponentUnderTest();
20-
TestConsole.WriteLine(cut.Markup);
20+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2121

2222
var spans = cut.FindAll("span");
2323

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/FooterStyleClass.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
void FirstTest()
2121
{
2222
var cut = GetComponentUnderTest();
23-
TestConsole.WriteLine(cut.Markup);
23+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2424
var footer = cut.Find("span").Children.FirstOrDefault(x => x.InnerHtml.Contains("FooterTemplate"));
2525
var @class = footer.GetAttribute("class");
2626

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/FooterStyleEmpty.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
void FirstTest()
1919
{
2020
var cut = GetComponentUnderTest();
21-
TestConsole.WriteLine(cut.Markup);
21+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2222
var footer = cut.Find("span").Children.FirstOrDefault(x => x.InnerHtml.Contains("FooterTemplate"));
2323

2424
footer.HasAttribute("style").ShouldBeFalse();

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/FooterStyleStyle.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
void FirstTest()
2323
{
2424
var cut = GetComponentUnderTest();
25-
TestConsole.WriteLine(cut.Markup);
25+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2626
var footer = cut.Find("span").Children.FirstOrDefault(x => x.InnerHtml.Contains("FooterTemplate"));
2727
footer.HasAttribute("style").ShouldBeTrue();
2828
var style = footer.GetAttribute("style");

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/FooterTemplate.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
void FirstTest()
1717
{
1818
var cut = GetComponentUnderTest();
19-
TestConsole.WriteLine(cut.Markup);
19+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2020
cut.FindAll("span").Count().ShouldBe(5);
2121
cut.FindAll("span").Count(c => c.TextContent == "FooterTemplate").ShouldBe(1);
2222
cut.FindAll("span").Last().TextContent.ShouldBe("FooterTemplate");

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/HeaderStyleClass.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//context.WaitForNextRender(() => { }, TimeSpan.FromSeconds(2));
4444
4545
var cut = GetComponentUnderTest();
46-
TestConsole.WriteLine(cut.Markup);
46+
System.Diagnostics.Debug.WriteLine(cut.Markup);
4747

4848
var theHeaderElement = cut.FindAll("span")[1];
4949

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/RepeatColumns/HorizontalColumns1.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
void FirstTest()
2323
{
2424
var cut = GetComponentUnderTest();
25-
TestConsole.WriteLine(cut.Markup);
25+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2626

2727
//DataListSpan
2828
// HeaderSpan

src/BlazorWebFormsComponents.Test/DataList/FlowLayout/RepeatColumns/HorizontalColumns10in4.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
void FirstTest()
2323
{
2424
var cut = GetComponentUnderTest();
25-
TestConsole.WriteLine(cut.Markup);
25+
System.Diagnostics.Debug.WriteLine(cut.Markup);
2626

2727
//DataListSpan
2828
// HeaderSpan

0 commit comments

Comments
 (0)