Skip to content

Commit

Permalink
Properly use CollectionDefinition for traceloggerfactory and appcompo…
Browse files Browse the repository at this point in the history
…ser tests
  • Loading branch information
DaveyJonesBitPail committed Nov 23, 2023
1 parent d4c4de4 commit 71a1fb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions czishrink/netczicompressTests/AppComposerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ namespace netczicompressTests;
using netczicompress;
using netczicompress.ViewModels;

/// <summary>
/// Class to define test collection for <see cref="AppComposerTests"/>
/// </summary>
[CollectionDefinition(nameof(AppComposerTests), DisableParallelization = true)]
public class AppComposerTestsCollection { }

/// <summary>
/// Tests for <see cref="AppComposer"/>.
/// </summary>
[Collection(nameof(AppComposerTests))]
public partial class AppComposerTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ namespace netczicompressTests.Models;
using Microsoft.Extensions.Logging;

/// <summary>
/// Tests for <see cref="TraceLoggerFactory"/>.
/// Class to define test collection for <see cref="TraceLoggerFactoryTests"/>
/// </summary>
[CollectionDefinition(nameof(TraceLoggerFactoryTests), DisableParallelization = true)]
public sealed class TraceLoggerFactoryTestsCollection {}

/// <summary>
/// Tests for <see cref="TraceLoggerFactory"/>.
/// </summary>
[Collection(nameof(TraceLoggerFactoryTests)]

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / Analyze CziShrink

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / Analyze CziShrink

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest-Release

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / windows-latest-Release

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest-Release

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest-Release

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest-Debug

) expected

Check failure on line 20 in czishrink/netczicompressTests/Models/TraceLoggerFactoryTests.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest-Debug

) expected
public sealed class TraceLoggerFactoryTests : IDisposable
{
private readonly MemoryTraceListener listener = new();
Expand Down

0 comments on commit 71a1fb3

Please sign in to comment.