mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-22 10:55:15 -04:00
Fix coverage collection in tests
This commit is contained in:
parent
9c25bceabf
commit
cad6baba48
5 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0" />
|
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0" />
|
||||||
<PackageReference Include="JsonExtensions" Version="1.1.0" />
|
<PackageReference Include="JsonExtensions" Version="1.1.0" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
|
||||||
<PackageReference Include="coverlet.msbuild" Version="3.0.3" PrivateAssets="all" />
|
<PackageReference Include="coverlet.msbuild" Version="3.1.0" PrivateAssets="all" />
|
||||||
<PackageReference Include="System.Reactive" Version="5.0.0" />
|
<PackageReference Include="System.Reactive" Version="5.0.0" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" PrivateAssets="all" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" PrivateAssets="all" />
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace DiscordChatExporter.Cli.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task Message_with_YouTube_video_is_rendered_with_a_player_in_HTML()
|
public async Task Message_with_YouTube_video_is_rendered_using_an_iframe_player_in_HTML()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var outputFilePath = _tempOutput.GetTempFilePath("html");
|
var outputFilePath = _tempOutput.GetTempFilePath("html");
|
||||||
|
|
|
@ -3,7 +3,7 @@ using System.IO;
|
||||||
|
|
||||||
namespace DiscordChatExporter.Cli.Tests.Infra
|
namespace DiscordChatExporter.Cli.Tests.Infra
|
||||||
{
|
{
|
||||||
public static class Secrets
|
internal static class Secrets
|
||||||
{
|
{
|
||||||
private static readonly Lazy<string> DiscordTokenLazy = new(() =>
|
private static readonly Lazy<string> DiscordTokenLazy = new(() =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace DiscordChatExporter.Cli.Utils.Extensions
|
||||||
public static IAnsiConsole CreateAnsiConsole(this IConsole console)
|
public static IAnsiConsole CreateAnsiConsole(this IConsole console)
|
||||||
{
|
{
|
||||||
// Don't require exclusivity in tests.
|
// Don't require exclusivity in tests.
|
||||||
// Workaround for: https://github.com/spectreconsole/spectre.console/issues/494
|
// Workaround for https://github.com/spectreconsole/spectre.console/issues/494
|
||||||
var exclusivityMode = console is FakeConsole
|
var exclusivityMode = console is FakeConsole
|
||||||
? new NoopExclusivityMode()
|
? new NoopExclusivityMode()
|
||||||
: null;
|
: null;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="JsonExtensions" Version="1.1.0" />
|
<PackageReference Include="JsonExtensions" Version="1.1.0" />
|
||||||
<PackageReference Include="MiniRazor.CodeGen" Version="2.1.2" />
|
<PackageReference Include="MiniRazor.CodeGen" Version="2.1.4" />
|
||||||
<PackageReference Include="Polly" Version="7.2.2" />
|
<PackageReference Include="Polly" Version="7.2.2" />
|
||||||
<PackageReference Include="Superpower" Version="2.3.0" />
|
<PackageReference Include="Superpower" Version="2.3.0" />
|
||||||
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
|
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue