🧪 test: add @wip tag for focused development

- Add @wip tag documentation to BDD_TAGS.md
- Modify all feature test suites to include @wip in tag filters
- Update test scripts to handle @wip tag inclusion
- @wip overrides exclusion tags (@todo, @skip, @flaky) for active development

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-04-10 09:14:29 +02:00
parent a75f87777b
commit e9fd453a88
9 changed files with 30 additions and 14 deletions

View File

@@ -126,13 +126,13 @@ run_tests_with_tags() {
set +e
if [ -n "$tags" ]; then
# 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)
# 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)
else
# 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)
# 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)
fi
test_exit_code=$?

View File

@@ -43,9 +43,9 @@ run_feature_test() {
docker exec dance-lessons-coach-postgres createdb -U postgres "${DLC_DATABASE_NAME}"
fi
# Run the feature tests with tag exclusion
# Run the feature tests with tag exclusion and WIP inclusion
cd "features/${feature_name}"
FEATURE=${feature_name} DLC_DATABASE_NAME="${DLC_DATABASE_NAME}" go test -v . -tags="~@flaky && ~@todo && ~@skip" 2>&1 | grep -E "(PASS|FAIL|RUN)" || true
FEATURE=${feature_name} DLC_DATABASE_NAME="${DLC_DATABASE_NAME}" go test -v . -tags="~@flaky && ~@todo && ~@skip && @wip" 2>&1 | grep -E "(PASS|FAIL|RUN)" || true
# Cleanup
cd ../..

View File

@@ -110,7 +110,7 @@ run_feature_tests() {
# Run tests with proper coverage measurement and tag exclusion
set +e
test_output=$(go test ./features/${FEATURE}/... -tags=~@flaky,~@todo,~@skip -v -cover -coverpkg=./... -coverprofile=coverage-${FEATURE}.out 2>&1)
test_output=$(go test ./features/${FEATURE}/... -tags=~@flaky,~@todo,~@skip,@wip -v -cover -coverpkg=./... -coverprofile=coverage-${FEATURE}.out 2>&1)
test_exit_code=$?
set -e