mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
e2e35a9659
It took longer than I thought in Github and barely worked, giving it a bit more of a buffer.
22 lines
578 B
TOML
22 lines
578 B
TOML
extend = [
|
|
{ path = "../cargo-make/playwright.toml" },
|
|
{ path = "../cargo-make/trunk_server.toml" },
|
|
]
|
|
|
|
[tasks.integration-test]
|
|
description = "Run integration test with automated start and stop of processes"
|
|
env = { SPAWN_CLIENT_PROCESS = "1" }
|
|
run_task = { name = ["start", "wait-test-stop"], parallel = true }
|
|
|
|
[tasks.wait-test-stop]
|
|
private = true
|
|
dependencies = ["wait-server", "test-playwright", "stop"]
|
|
|
|
[tasks.wait-server]
|
|
script = '''
|
|
for run in {1..12}; do
|
|
echo "Waiting to ensure server is started..."
|
|
sleep 10
|
|
done
|
|
echo "Times up, running tests"
|
|
'''
|