🧪 test: remove hardcoded @wip and update tag logic
- Remove @wip from default tag filters in all test suites - Update features/bdd_test.go to support GODOG_TAGS override - Move @wip tag from passing scenario to @todo scenario - Maintain tag override functionality via GODOG_TAGS environment variable - Update documentation to reflect new default behavior Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -126,13 +126,13 @@ run_tests_with_tags() {
|
||||
set +e
|
||||
|
||||
if [ -n "$tags" ]; then
|
||||
# Use godog directly for tag filtering with exclusion and WIP inclusion
|
||||
echo "🚀 Running: godog $tags --tags=~@flaky --tags=~@todo --tags=~@skip --tags=@wip features/"
|
||||
test_output=$(godog $tags --tags=~@flaky --tags=~@todo --tags=~@skip --tags=@wip features/ 2>&1)
|
||||
# Use godog directly for tag filtering with exclusion
|
||||
echo "🚀 Running: godog $tags --tags=~@flaky --tags=~@todo --tags=~@skip features/"
|
||||
test_output=$(godog $tags --tags=~@flaky --tags=~@todo --tags=~@skip features/ 2>&1)
|
||||
else
|
||||
# Use go test for full test suite with tag exclusion and WIP inclusion
|
||||
echo "🚀 Running: go test ./features/... -tags=~@flaky,~@todo,~@skip,@wip"
|
||||
test_output=$(go test ./features/... -tags=~@flaky,~@todo,~@skip,@wip -v -cover -coverpkg=./... -coverprofile=coverage.out 2>&1)
|
||||
# Use go test for full test suite with tag exclusion
|
||||
echo "🚀 Running: go test ./features/... -tags=~@flaky,~@todo,~@skip"
|
||||
test_output=$(go test ./features/... -tags=~@flaky,~@todo,~@skip -v -cover -coverpkg=./... -coverprofile=coverage.out 2>&1)
|
||||
fi
|
||||
|
||||
test_exit_code=$?
|
||||
|
||||
Reference in New Issue
Block a user