Skip to content

Commit cc07233

Browse files
authored
Ensure authoring test project reports properly on Github Actions (#463)
* [Do not merge] testing test reporting of new test project * ensure dotnet test picks up authoring.fsproj * move all tests to xunit 3 * fix test that we made error on purpose
1 parent 47c7663 commit cc07233

36 files changed

+49
-71
lines changed

tests/Elastic.Markdown.Tests/CodeBlocks/CallOutTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Elastic.Markdown.Tests.Inline;
77
using FluentAssertions;
88
using JetBrains.Annotations;
9-
using Xunit.Abstractions;
109

1110
namespace Elastic.Markdown.Tests.CodeBlocks;
1211

tests/Elastic.Markdown.Tests/CodeBlocks/CodeTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Elastic.Markdown.Myst.CodeBlocks;
66
using Elastic.Markdown.Tests.Inline;
77
using FluentAssertions;
8-
using Xunit.Abstractions;
98

109
namespace Elastic.Markdown.Tests.CodeBlocks;
1110

tests/Elastic.Markdown.Tests/Directives/AdmonitionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// See the LICENSE file in the project root for more information
44
using Elastic.Markdown.Myst.Directives;
55
using FluentAssertions;
6-
using Xunit.Abstractions;
76

87
namespace Elastic.Markdown.Tests.Directives;
98

tests/Elastic.Markdown.Tests/Directives/AdmonitionUnsupportedTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using Elastic.Markdown.Myst.Directives;
66
using FluentAssertions;
7-
using Xunit.Abstractions;
87

98
namespace Elastic.Markdown.Tests.Directives;
109

tests/Elastic.Markdown.Tests/Directives/AppliesBlockTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Elastic.Markdown.Diagnostics;
66
using Elastic.Markdown.Myst.Directives;
77
using FluentAssertions;
8-
using Xunit.Abstractions;
98

109
namespace Elastic.Markdown.Tests.Directives;
1110

tests/Elastic.Markdown.Tests/Directives/DirectiveBaseTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using JetBrains.Annotations;
1010
using Markdig.Syntax;
1111
using Microsoft.Extensions.Logging;
12-
using Xunit.Abstractions;
1312

1413
namespace Elastic.Markdown.Tests.Directives;
1514

@@ -19,7 +18,7 @@ public abstract class DirectiveTest<TDirective>(ITestOutputHelper output, [Langu
1918
{
2019
protected TDirective? Block { get; private set; }
2120

22-
public override async Task InitializeAsync()
21+
public override async ValueTask InitializeAsync()
2322
{
2423
await base.InitializeAsync();
2524
Block = Document
@@ -82,7 +81,7 @@ protected DirectiveTest(ITestOutputHelper output, [LanguageInjection("markdown")
8281

8382
protected virtual void AddToFileSystem(MockFileSystem fileSystem) { }
8483

85-
public virtual async Task InitializeAsync()
84+
public virtual async ValueTask InitializeAsync()
8685
{
8786
_ = Collector.StartAsync(default);
8887

@@ -98,6 +97,6 @@ public virtual async Task InitializeAsync()
9897
await Collector.StopAsync(default);
9998
}
10099

101-
public Task DisposeAsync() => Task.CompletedTask;
100+
public ValueTask DisposeAsync() => ValueTask.CompletedTask;
102101

103102
}

tests/Elastic.Markdown.Tests/Directives/ImageTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Elastic.Markdown.Diagnostics;
77
using Elastic.Markdown.Myst.Directives;
88
using FluentAssertions;
9-
using Xunit.Abstractions;
109

1110
namespace Elastic.Markdown.Tests.Directives;
1211

tests/Elastic.Markdown.Tests/Directives/MermaidTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Elastic.Markdown.Myst.Directives;
55
using FluentAssertions;
66
using Xunit;
7-
using Xunit.Abstractions;
87

98
namespace Elastic.Markdown.Tests.Directives;
109

tests/Elastic.Markdown.Tests/Directives/TabTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Elastic.Markdown.Myst.Directives;
55
using FluentAssertions;
66
using Markdig;
7-
using Xunit.Abstractions;
87

98
namespace Elastic.Markdown.Tests.Directives;
109

tests/Elastic.Markdown.Tests/Directives/UnsupportedTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Elastic.Markdown.Diagnostics;
66
using Elastic.Markdown.Myst.Directives;
77
using FluentAssertions;
8-
using Xunit.Abstractions;
98

109
namespace Elastic.Markdown.Tests.Directives;
1110

0 commit comments

Comments
 (0)