fixed bdd tests
This commit is contained in:
@@ -77,7 +77,7 @@ func InitializeAllSteps(ctx *godog.ScenarioContext, client *testserver.Client) {
|
|||||||
ctx.Step(`^I authenticate with username "([^"]*)" and password "([^"]*)" again$`, sc.authSteps.iAuthenticateWithUsernameAndPasswordAgain)
|
ctx.Step(`^I authenticate with username "([^"]*)" and password "([^"]*)" again$`, sc.authSteps.iAuthenticateWithUsernameAndPasswordAgain)
|
||||||
|
|
||||||
// Common steps
|
// Common steps
|
||||||
ctx.Step(`^the response should be "{\"([^"]*)\":\"([^"]*)"}"$`, sc.commonSteps.theResponseShouldBe)
|
ctx.Step(`^the response should be "{\\"([^"]*)":\\"([^"]*)"}"$`, sc.commonSteps.theResponseShouldBe)
|
||||||
ctx.Step(`^the response should contain error "([^"]*)"$`, sc.commonSteps.theResponseShouldContainError)
|
ctx.Step(`^the response should contain error "([^"]*)"$`, sc.commonSteps.theResponseShouldContainError)
|
||||||
ctx.Step(`^the status code should be (\d+)$`, sc.commonSteps.theStatusCodeShouldBe)
|
ctx.Step(`^the status code should be (\d+)$`, sc.commonSteps.theStatusCodeShouldBe)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "🧪 Running BDD Tests..."
|
echo "🧪 Running BDD Tests..."
|
||||||
cd /Users/gabrielradureau/Work/Vibe/dance-lessons-coach
|
cd /Users/gabrielradureau/Work/Vibe/DanceLessonsCoach
|
||||||
|
|
||||||
# Check if PostgreSQL container is running, start it if not
|
# Check if PostgreSQL container is running, start it if not
|
||||||
echo "🐋 Checking PostgreSQL container..."
|
echo "🐋 Checking PostgreSQL container..."
|
||||||
@@ -90,5 +90,6 @@ if [ $test_exit_code -eq 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "❌ BDD tests failed"
|
echo "❌ BDD tests failed"
|
||||||
|
echo 'DLC_DATABASE_HOST=localhost DLC_DATABASE_PORT=5432 DLC_DATABASE_USER=postgres DLC_DATABASE_PASSWORD=postgres DLC_DATABASE_NAME=dance_lessons_coach_bdd_test DLC_DATABASE_SSL_MODE=disable go test ./features/... -v'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user