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