package features import ( "testing" "dance-lessons-coach/pkg/bdd/testsetup" ) func TestBDD(t *testing.T) { // Get feature name from environment variable or default to all features feature := testsetup.GetFeatureFromEnv() var suiteName string var paths []string if feature == "" { // Run all features suiteName = "dance-lessons-coach BDD Tests - All Features" paths = testsetup.GetAllFeaturePaths() } else { // Run specific feature suiteName = "dance-lessons-coach BDD Tests - " + feature + " Feature" paths = []string{feature} } config := testsetup.NewMultiFeatureConfig(paths, "progress", false) suite := testsetup.CreateMultiFeatureTestSuite(t, config, suiteName) if suite.Run() != 0 { t.Fatal("non-zero status returned, failed to run BDD tests") } }