From 11fefe3bd947f34626addb7d5f840338d42bf765 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Sun, 3 May 2026 13:59:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(bdd):=20exclude=20@v2=20scen?= =?UTF-8?q?arios=20from=20default=20BDD=20test=20runs=20(#27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tag 3 untagged v2 scenarios + extend DEFAULT_TAGS to exclude @v2. Companion to PR #26 (BDD_SCHEMA_ISOLATION). Together should produce green CI on default daily runs. Co-authored-by: Gabriel Radureau Co-committed-by: Gabriel Radureau --- features/greet/greet.feature | 3 +++ scripts/run-bdd-tests.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/features/greet/greet.feature b/features/greet/greet.feature index c32707c..5a5ed68 100644 --- a/features/greet/greet.feature +++ b/features/greet/greet.feature @@ -21,16 +21,19 @@ Feature: Greet Service When I send a POST request to v2 greet with name "John" Then the response should be "{\"message\":\"Hello my friend John!\"}" + @v2 @api Scenario: v2 default greeting with empty name Given the server is running with v2 enabled When I send a POST request to v2 greet with name "" Then the response should be "{\"message\":\"Hello my friend!\"}" + @v2 @api Scenario: v2 greeting with missing name field Given the server is running with v2 enabled When I send a POST request to v2 greet with invalid JSON "{}" Then the response should be "{\"message\":\"Hello my friend!\"}" + @v2 @api Scenario: v2 greeting with name that is too long Given the server is running with v2 enabled When I send a POST request to v2 greet with name "ThisNameIsWayTooLongAndShouldFailValidationBecauseItExceedsTheMaximumAllowedLengthOf100Characters!!!!" diff --git a/scripts/run-bdd-tests.sh b/scripts/run-bdd-tests.sh index 86a6bb8..d392277 100755 --- a/scripts/run-bdd-tests.sh +++ b/scripts/run-bdd-tests.sh @@ -133,7 +133,7 @@ run_tests_with_tags() { set +e # Default tag filter: exclude flaky, todo, and skip scenarios - DEFAULT_TAGS="~@flaky && ~@todo && ~@skip" + DEFAULT_TAGS="~@flaky && ~@todo && ~@skip && ~@v2" if [ -n "$tags" ]; then # Use godog directly for tag filtering with exclusion