Skip to content

Commit 0e91a02

Browse files
committed
Isolating StandbyMode tests
1 parent 3f6a252 commit 0e91a02

File tree

14 files changed

+65
-24
lines changed

14 files changed

+65
-24
lines changed

run-tests.ps1

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ $tests = @(
3333
@{project ="WebJobs.Script.Tests"; description="Unit Tests"},
3434
@{project ="WebJobs.Script.Scaling.Tests"; description="Scaling Tests"},
3535
@{project ="WebJobs.Script.Tests.Integration"; description="Non-E2E integration tests"; filter ="Category!=E2E"},
36-
@{project ="WebJobs.Script.Tests.Integration"; description="C# end to end tests"; filter ="E2E=CSharpEndToEndTests"},
37-
@{project ="WebJobs.Script.Tests.Integration"; description="Node end to end tests"; filter ="E2E=NodeEndToEndTests"},
38-
@{project ="WebJobs.Script.Tests.Integration"; description="Direct load end to end tests"; filter ="E2E=DirectLoadEndToEndTests"},
39-
@{project ="WebJobs.Script.Tests.Integration"; description="F# end to end tests"; filter ="E2E=FSharpEndToEndTests"},
40-
@{project ="WebJobs.Script.Tests.Integration"; description="Language worker end to end tests"; filter ="E2E=LanguageWorkerSelectionEndToEndTests"},
41-
@{project ="WebJobs.Script.Tests.Integration"; description="Node script host end to end tests"; filter ="E2E=NodeScriptHostTests"},
42-
@{project ="WebJobs.Script.Tests.Integration"; description="Raw assembly end to end tests"; filter ="E2E=RawAssemblyEndToEndTests"},
43-
@{project ="WebJobs.Script.Tests.Integration"; description="Samples end to end tests"; filter ="E2E=SamplesEndToEndTests"}
36+
@{project ="WebJobs.Script.Tests.Integration"; description="C# end to end tests"; filter ="Group=CSharpEndToEndTests"},
37+
@{project ="WebJobs.Script.Tests.Integration"; description="Node end to end tests"; filter ="Group=NodeEndToEndTests"},
38+
@{project ="WebJobs.Script.Tests.Integration"; description="Direct load end to end tests"; filter ="Group=DirectLoadEndToEndTests"},
39+
@{project ="WebJobs.Script.Tests.Integration"; description="F# end to end tests"; filter ="Group=FSharpEndToEndTests"},
40+
@{project ="WebJobs.Script.Tests.Integration"; description="Language worker end to end tests"; filter ="Group=LanguageWorkerSelectionEndToEndTests"},
41+
@{project ="WebJobs.Script.Tests.Integration"; description="Node script host end to end tests"; filter ="Group=NodeScriptHostTests"},
42+
@{project ="WebJobs.Script.Tests.Integration"; description="Raw assembly end to end tests"; filter ="Group=RawAssemblyEndToEndTests"},
43+
@{project ="WebJobs.Script.Tests.Integration"; description="Samples end to end tests"; filter ="Group=SamplesEndToEndTests"}
44+
@{project ="WebJobs.Script.Tests.Integration"; description="Standby mode end to end tests"; filter ="Group=StandbyModeEndToEndTests"}
45+
@{project ="WebJobs.Script.Tests.Integration"; description="InstanceManager end to end tests"; filter ="Group=InstanceManagerTests"}
4446
)
4547

4648
$success = $true

test/WebJobs.Script.Tests.Integration/Host/StandbyManagerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
namespace Microsoft.Azure.WebJobs.Script.Tests
3030
{
31+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
32+
[Trait(TestTraits.Group, TestTraits.StandbyModeTests)]
3133
public class StandbyManagerTests : IDisposable
3234
{
3335
private readonly ScriptSettingsManager _settingsManager;

test/WebJobs.Script.Tests.Integration/Host/StandbyModeTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
namespace Microsoft.Azure.WebJobs.Script.Tests
2020
{
21+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
22+
[Trait(TestTraits.Group, TestTraits.StandbyModeTests)]
2123
public class StandbyModeTests : IDisposable
2224
{
2325
private readonly WebHostResolver _webHostResolver;

test/WebJobs.Script.Tests.Integration/ScriptHostEndToEnd/DirectLoadEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
using Microsoft.Extensions.Logging;
1313
using System;
1414
using Microsoft.Azure.WebJobs.Host;
15+
using Microsoft.WebJobs.Script.Tests;
1516

1617
namespace Microsoft.Azure.WebJobs.Script.Tests
1718
{
18-
[Trait("Category", "E2E")]
19-
[Trait("E2E", nameof(DirectLoadEndToEndTests))]
19+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
20+
[Trait(TestTraits.Group, nameof(DirectLoadEndToEndTests))]
2021
public class DirectLoadEndToEndTests : IClassFixture<DirectLoadEndToEndTests.TestFixture>
2122
{
2223
TestFixture Fixture;

test/WebJobs.Script.Tests.Integration/ScriptHostEndToEnd/LanguageWorkerSelectionEndToEndTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
namespace Microsoft.Azure.WebJobs.Script.Tests.Integration.ScriptHostEndToEnd
1414
{
15-
[Trait("Category", "E2E")]
16-
[Trait("E2E", nameof(LanguageWorkerSelectionEndToEndTests))]
15+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
16+
[Trait(TestTraits.Group, nameof(LanguageWorkerSelectionEndToEndTests))]
1717
public class LanguageWorkerSelectionEndToEndTests
1818
{
1919
[Theory]

test/WebJobs.Script.Tests.Integration/ScriptHostEndToEnd/NodeScriptHostTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
namespace Microsoft.Azure.WebJobs.Script.Tests
1818
{
19-
[Trait("Category", "E2E")]
20-
[Trait("E2E", nameof(NodeScriptHostTests))]
19+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
20+
[Trait(TestTraits.Group, nameof(NodeScriptHostTests))]
2121
public class NodeScriptHostTests : IClassFixture<NodeScriptHostTests.TestFixture>
2222
{
2323
private TestFixture Fixture;

test/WebJobs.Script.Tests.Integration/ScriptHostEndToEnd/RawAssemblyEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
using Microsoft.Azure.WebJobs.Script.Tests.Integration.Properties;
1414
using Microsoft.CodeAnalysis;
1515
using Microsoft.CodeAnalysis.CSharp;
16+
using Microsoft.WebJobs.Script.Tests;
1617
using Xunit;
1718

1819
namespace Microsoft.Azure.WebJobs.Script.Tests
1920
{
20-
[Trait("Category", "E2E")]
21-
[Trait("E2E", nameof(RawAssemblyEndToEndTests))]
21+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
22+
[Trait(TestTraits.Group, nameof(RawAssemblyEndToEndTests))]
2223
public class RawAssemblyEndToEndTests : IClassFixture<RawAssemblyEndToEndTests.TestFixture>
2324
{
2425
private TestFixture _fixture;

test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/CSharpEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
using System.Threading.Tasks;
1111
using Microsoft.CodeAnalysis;
1212
using Microsoft.CodeAnalysis.CSharp;
13+
using Microsoft.WebJobs.Script.Tests;
1314
using Newtonsoft.Json.Linq;
1415
using Xunit;
1516

1617
namespace Microsoft.Azure.WebJobs.Script.Tests.EndToEnd
1718
{
18-
[Trait("Category", "E2E")]
19-
[Trait("E2E", nameof(CSharpEndToEndTests))]
19+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
20+
[Trait(TestTraits.Group, nameof(CSharpEndToEndTests))]
2021
public class CSharpEndToEndTests : EndToEndTestsBase<CSharpEndToEndTests.TestFixture>
2122
{
2223
public CSharpEndToEndTests(TestFixture fixture) : base(fixture)

test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/FSharpEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
using System.Threading.Tasks;
77
using Microsoft.CodeAnalysis;
88
using Microsoft.CodeAnalysis.CSharp;
9+
using Microsoft.WebJobs.Script.Tests;
910
using Xunit;
1011

1112
namespace Microsoft.Azure.WebJobs.Script.Tests.EndToEnd
1213
{
13-
[Trait("Category", "E2E")]
14-
[Trait("E2E", nameof(FSharpEndToEndTests))]
14+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
15+
[Trait(TestTraits.Group, nameof(FSharpEndToEndTests))]
1516
public class FSharpEndToEndTests : EndToEndTestsBase<FSharpEndToEndTests.TestFixture>
1617
{
1718
public FSharpEndToEndTests(TestFixture fixture) : base(fixture)

test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/NodeEndToEndTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.WebJobs.Logging;
1616
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
1717
using Microsoft.Extensions.Logging;
18+
using Microsoft.WebJobs.Script.Tests;
1819
using Microsoft.WindowsAzure.Storage.Blob;
1920
using Microsoft.WindowsAzure.Storage.Queue;
2021
using Newtonsoft.Json;
@@ -23,8 +24,8 @@
2324

2425
namespace Microsoft.Azure.WebJobs.Script.Tests.EndToEnd
2526
{
26-
[Trait("Category", "E2E")]
27-
[Trait("E2E", nameof(NodeEndToEndTests))]
27+
[Trait(TestTraits.Category, TestTraits.EndToEnd)]
28+
[Trait(TestTraits.Group, nameof(NodeEndToEndTests))]
2829
public class NodeEndToEndTests : EndToEndTestsBase<NodeEndToEndTests.TestFixture>
2930
{
3031
public NodeEndToEndTests(TestFixture fixture) : base(fixture)

0 commit comments

Comments
 (0)