Skip to content

Commit fa38daa

Browse files
committed
chore: #46: Split repeat happy path tests to their own test categories to allow parallel execution on pipeline.
1 parent 01292d1 commit fa38daa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Atlas.Auto.Tests/Tests/RepeatSearch/RepeatSearch_HappyPathTests.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ namespace Atlas.Auto.Tests.Tests.RepeatSearch;
66

77
/// <summary>
88
/// Tests that cover happy paths of Atlas repeat search.
9+
/// Adult and cord test have been split into separate test categories to allow for parallel execution on the test pipeline.
910
/// </summary>
1011
[TestFixture]
1112
[Parallelizable(ParallelScope.All)]
12-
[Category($"{nameof(RepeatSearch_HappyPathTests)}")]
1313
// ReSharper disable once InconsistentNaming
1414
internal class RepeatSearch_HappyPathTests : RepeatSearchTestBase
1515
{
16-
public RepeatSearch_HappyPathTests() : base(nameof(RepeatSearch_HappyPathTests))
16+
private const string TestCategoryPrefix = nameof(RepeatSearch_HappyPathTests);
17+
18+
public RepeatSearch_HappyPathTests() : base(TestCategoryPrefix)
1719
{
1820
}
1921

22+
[Category($"{TestCategoryPrefix}_Adult")]
2023
[Test]
2124
public async Task RepeatSearch_Donor_10_10_IdentifiedExpectedChanges()
2225
{
@@ -27,6 +30,7 @@ public async Task RepeatSearch_Donor_10_10_IdentifiedExpectedChanges()
2730
test.Logger.LogCompletion(testDescription);
2831
}
2932

33+
[Category($"{TestCategoryPrefix}_Cord")]
3034
[Test]
3135
public async Task RepeatSearch_Cord_4_8_IdentifiedExpectedChanges()
3236
{

test-pipeline.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ stages:
7171
- job: Search_HappyPathTests
7272
- job: Search_ExceptionPathTests
7373
- job: Scoring_HappyPathTests
74-
- job: RepeatSearch_HappyPathTests
74+
- job: RepeatSearch_HappyPathTests_Adult
75+
- job: RepeatSearch_HappyPathTests_Cord
7576
- job: RepeatSearch_ExceptionPathTests

0 commit comments

Comments
 (0)