Skip tests based on Category instead of ifdef DEBUG
This commit is contained in:
parent
97672f4321
commit
470b283f08
@ -1,6 +1,4 @@
|
|||||||
// Do not include in the Release build for AppVeyor due to the Docker requirement
|
using System.Text;
|
||||||
#if DEBUG
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
@ -14,6 +12,7 @@ using Xunit.Abstractions;
|
|||||||
namespace Tapeti.Tests.Client
|
namespace Tapeti.Tests.Client
|
||||||
{
|
{
|
||||||
[Collection(RabbitMQCollection.Name)]
|
[Collection(RabbitMQCollection.Name)]
|
||||||
|
[Trait("Category", "Requires Docker")]
|
||||||
public class TapetiClientTests : IAsyncLifetime
|
public class TapetiClientTests : IAsyncLifetime
|
||||||
{
|
{
|
||||||
private readonly RabbitMQFixture fixture;
|
private readonly RabbitMQFixture fixture;
|
||||||
@ -115,4 +114,3 @@ namespace Tapeti.Tests.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
@ -32,6 +32,14 @@ after_build:
|
|||||||
build:
|
build:
|
||||||
project: Tapeti.sln
|
project: Tapeti.sln
|
||||||
|
|
||||||
|
test:
|
||||||
|
assemblies:
|
||||||
|
only:
|
||||||
|
- Tapeti.Tests\bin\Release\net6.0\Tapeti.Tests.dll
|
||||||
|
categories:
|
||||||
|
except:
|
||||||
|
- Requires Docker
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- Any CPU
|
- Any CPU
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user