Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 62d6aae

Browse files
test: Refactored e2e test script
1 parent 7ba9b0d commit 62d6aae

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/tests/e2e.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#!/bin/bash
22

3-
# Start the Service Layer in background
4-
cd src/ServiceLayer.API/
5-
func start &
6-
cd ../..
3+
# Start the Service Layer in the background
4+
(
5+
cd src/ServiceLayer.API/ && func start &
6+
)
77

88
# Start the LocalEventgridEmulator in detached mode
9-
cd tests/LocalEventgridEmulator
10-
docker-compose up -d
11-
cd ../..
9+
docker-compose -f tests/LocalEventgridEmulator/docker-compose.yml up -d
1210

13-
# Start the TestEventGridSubscriber in background
14-
cd tests/e2e/TestEventGridSubscriber
15-
func start &
16-
cd ..
11+
# Start the TestEventGridSubscriber in the background
12+
(
13+
cd tests/e2e/TestEventGridSubscriber && func start &
14+
)
1715

18-
# Optional: Wait a few seconds to let services start
16+
# Wait a few seconds to let services start
1917
sleep 15
2018

2119
# Run the Playwright test
22-
npm test
20+
(
21+
cd tests/e2e && npm test
22+
)
2323

2424
echo "Killing all background jobs"
2525
kill $(jobs -p)

0 commit comments

Comments
 (0)