用于使用我拥有的脚本测试网络应用程序
launch_test() {
spawn_local_test_http_server(port)
I want -> run_browser_with_url(where server is)
such that it will block until the user closes it or if one kills this process
kill_local_test_server();
}
我正在MacOS上测试
尝试这样的事情:
launch_test() {
spawn_local_test_http_server(port)
I want -> run_browser_with_url(where server is)
while pgrep "Google Chrome" > /dev/null; do
sleep 1
done
kill_local_test_server();
}