Skip to content

Commit a44c6b5

Browse files
author
Damien LACHAUME / PALO-IT
committed
Update Makefile to run the fake aggregator with tests
1 parent a142158 commit a44c6b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mithril-client-wasm/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ build:
1313
wasm-pack build --target web --release --out-name index
1414

1515
test:
16-
wasm-pack test --headless --firefox --chrome --node --release
16+
pkill -f "mithril-aggregator-fake" || true
17+
${CARGO} run -p mithril-aggregator-fake -- -p 8000 &
18+
if wasm-pack test --headless --firefox --chrome --node --release; then \
19+
pkill -f "mithril-aggregator-fake" || true; \
20+
else \
21+
pkill -f "mithril-aggregator-fake" || true; \
22+
exit 1; \
23+
fi
1724

1825
check:
1926
${CARGO} check --release --all-features --all-targets

0 commit comments

Comments
 (0)