From 4f7e81e2ee5b45b7ee0f53351452c21df0381b78 Mon Sep 17 00:00:00 2001 From: Josh Keegan Date: Wed, 23 Jun 2021 17:09:32 +0100 Subject: [PATCH] New tests to validate tag order doesn't affect test outcome --- .../SpecFlow/Features/RetryScenarioOutlines.feature | 8 ++++++++ test/UnitTests/SpecFlow/Features/RetryScenarios.feature | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/test/UnitTests/SpecFlow/Features/RetryScenarioOutlines.feature b/test/UnitTests/SpecFlow/Features/RetryScenarioOutlines.feature index 05140a4..356bccf 100644 --- a/test/UnitTests/SpecFlow/Features/RetryScenarioOutlines.feature +++ b/test/UnitTests/SpecFlow/Features/RetryScenarioOutlines.feature @@ -40,6 +40,14 @@ Scenario Outline: Test is ignored @ignore @retry Scenario Outline: Retry test is ignored + Then fail because this test should have been skipped + Examples: + | n | + | 1 | + | 2 | + +@retry @ignore +Scenario Outline: Retry test is ignored regardless of tag order Then fail because this test should have been skipped Examples: | n | diff --git a/test/UnitTests/SpecFlow/Features/RetryScenarios.feature b/test/UnitTests/SpecFlow/Features/RetryScenarios.feature index 8d7a89b..754d16c 100644 --- a/test/UnitTests/SpecFlow/Features/RetryScenarios.feature +++ b/test/UnitTests/SpecFlow/Features/RetryScenarios.feature @@ -24,4 +24,8 @@ Scenario: Test is ignored @ignore @retry Scenario: Retry test is ignored + Then fail because this test should have been skipped + +@retry @ignore +Scenario: Retry test is ignored regardless of tag order Then fail because this test should have been skipped \ No newline at end of file