Compare commits
13 Commits
81fe00bfb8
...
dev-2026-0
| Author | SHA1 | Date | |
|---|---|---|---|
| ef8a4ae994 | |||
| 4c54503a81 | |||
| 62d339b58c | |||
| 23cad37e03 | |||
| 779fb7b387 | |||
| 48c54c2f32 | |||
| f5294f5290 | |||
| 11d0865fd3 | |||
| 14f4fb8d16 | |||
| cc2d4aea5c | |||
| 5a45a72dcf | |||
| ba3909ec68 | |||
| 805dc2fe32 |
Submodule HarborForge.Backend.Test updated: 477419cb57...b505fa7b35
Submodule HarborForge.Frontend.Test updated: 82e9dc2c86...df05820a95
@@ -1,10 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Run frontend test with optional port exposure
|
||||
# Usage: ./run-test-frontend.sh [--expose-port {on|off}]
|
||||
# Default: off
|
||||
#
|
||||
# --expose-port on: Keep services running after test (manual cleanup required)
|
||||
# --expose-port off: Auto cleanup after test (default)
|
||||
# Default:
|
||||
# --expose-port off: Auto cleanup after test
|
||||
|
||||
set -e
|
||||
|
||||
@@ -112,7 +110,7 @@ fi
|
||||
|
||||
echo "✅ Services ready!"
|
||||
|
||||
# Run test
|
||||
# Run test using the image default CMD so proxy startup stays inside Frontend.Test Dockerfile
|
||||
echo "🧪 Running test..."
|
||||
docker compose -f "$COMPOSE_FILE" run --rm -e WORKERS=1 test
|
||||
TEST_EXIT_CODE=$?
|
||||
@@ -124,7 +122,7 @@ if [[ "$EXPOSE_PORT" == "on" ]]; then
|
||||
echo " Use './run-test-frontend.sh --expose-port on' to cleanup"
|
||||
echo " Or manually: docker compose -f $COMPOSE_FILE down -v"
|
||||
echo ""
|
||||
|
||||
|
||||
if [ $TEST_EXIT_CODE -eq 0 ]; then
|
||||
echo "✅ Test passed!"
|
||||
else
|
||||
@@ -134,7 +132,7 @@ else
|
||||
echo ""
|
||||
echo "🧹 Cleaning up containers and volumes..."
|
||||
docker compose -f "$COMPOSE_FILE" down -v
|
||||
|
||||
|
||||
if [ $TEST_EXIT_CODE -eq 0 ]; then
|
||||
echo "✅ Test passed!"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user