-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add traits for e2e tests to use in final pipeline (#3841)
* adding trait for e2e tests to use in final pipeline * test changes * removing duplicate test * fixing tests * trying to filter tests again * addressing comments * adding extra label * changing spacing back * trying spacing again * changing spacing back * four spaces * adding trait * getting build to work * removing constant * addressing comments * group trait
- Loading branch information
1 parent
5b7f4c7
commit b6f869f
Showing
5 changed files
with
115 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Azure.Functions.Cli.Tests.E2E.Helpers | ||
{ | ||
internal static class TestTraits | ||
{ | ||
/// <summary> | ||
/// Defines a group of tests to be run together. Useful for test isolation. | ||
/// </summary> | ||
public const string Group = "Group"; | ||
|
||
// Groups | ||
/// <summary> | ||
/// Tests with RequiresNestedInProcArtifacts label will not be run in the default scenario and only in the artifact consolidation pipeline | ||
/// Otherwise tests with this label will fail in the PR/ official core tools pipelines since the nested inproc artifacts are not present. | ||
/// </summary> | ||
public const string RequiresNestedInProcArtifacts = "RequiresNestedInProcArtifacts"; | ||
|
||
/// <summary> | ||
/// Tests with UseInConsolidatedArtifactGeneration label will be used in the default scenario and in the artifact consolidation pipeline | ||
/// We still want to run these tests in the PR/ official core tools pipelines and in the artifact consolidation pipeline for a sanity check before publishing the artifacts. | ||
/// </summary> | ||
public const string UseInConsolidatedArtifactGeneration = "UseInConsolidatedArtifactGeneration"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
test/Azure.Functions.Cli.Tests/E2E/StartTests_artifact_consolidation.runsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<RunConfiguration> | ||
<TestCaseFilter>(Group = RequiresNestedInProcArtifacts | Group = UseInConsolidatedArtifactGeneration)</TestCaseFilter> | ||
</RunConfiguration> | ||
</RunSettings> |
6 changes: 6 additions & 0 deletions
6
test/Azure.Functions.Cli.Tests/E2E/StartTests_default.runsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<RunConfiguration> | ||
<TestCaseFilter>(Group != RequiresNestedInProcArtifacts)</TestCaseFilter> | ||
</RunConfiguration> | ||
</RunSettings> |