Skip to content

Commit

Permalink
#1700 Add sequential tests with disabled parallelization (#1705)
Browse files Browse the repository at this point in the history
* Add sequential tests with disabled parallelization
  • Loading branch information
raman-m authored Sep 25, 2023
1 parent fdad15d commit 8b89257
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/Ocelot.AcceptanceTests/ConfigurationReloadTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using System;

using Ocelot.Configuration.ChangeTracking;
using Ocelot.Configuration.ChangeTracking;
using Ocelot.Configuration.File;

using System;
using TestStack.BDDfy;

using Xunit;

namespace Ocelot.AcceptanceTests
{
[Collection(nameof(SequentialTests))]
public sealed class ConfigurationReloadTests : IDisposable
{
private readonly FileConfiguration _initialConfig;
Expand Down
11 changes: 11 additions & 0 deletions test/Ocelot.AcceptanceTests/SequentialTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Xunit;

namespace Ocelot.AcceptanceTests;

/// <summary>
/// Apply <see cref="CollectionAttribute"/> to classes to disable parallelization.
/// </summary>
[CollectionDefinition(nameof(SequentialTests), DisableParallelization = true)]
public class SequentialTests
{
}

0 comments on commit 8b89257

Please sign in to comment.