1
0
mirror of synced 2024-11-21 08:53:50 +00:00

Skip tests based on Category instead of ifdef DEBUG

This commit is contained in:
Mark van Renswoude 2022-11-23 09:19:01 +01:00
parent 97672f4321
commit 470b283f08
2 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,4 @@
// Do not include in the Release build for AppVeyor due to the Docker requirement
#if DEBUG
using System.Text;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
@ -14,6 +12,7 @@ using Xunit.Abstractions;
namespace Tapeti.Tests.Client
{
[Collection(RabbitMQCollection.Name)]
[Trait("Category", "Requires Docker")]
public class TapetiClientTests : IAsyncLifetime
{
private readonly RabbitMQFixture fixture;
@ -114,5 +113,4 @@ namespace Tapeti.Tests.Client
});
}
}
}
#endif
}

View File

@ -32,6 +32,14 @@ after_build:
build:
project: Tapeti.sln
test:
assemblies:
only:
- Tapeti.Tests\bin\Release\net6.0\Tapeti.Tests.dll
categories:
except:
- Requires Docker
platform:
- Any CPU