this repo has no description
1; Browser tests using Playwright
2; Run with: dune build @browser
3
4(executable
5 (name client_test)
6 (modes js)
7 (modules client_test)
8 (preprocess (pps js_of_ocaml-ppx))
9 (libraries js_top_worker-client.msg astring lwt js_of_ocaml))
10
11(executable
12 (name test_worker)
13 (modes js)
14 (modules test_worker)
15 (ocamlopt_flags (:standard -w -58))
16 (link_flags (-linkall))
17 (preprocess (pps js_of_ocaml-ppx))
18 (js_of_ocaml
19 (javascript_files ../../lib/stubs.js)
20 (flags --effects=disabled --toplevel +toplevel.js +dynlink.js))
21 (libraries js_top_worker js_top_worker-web js_top_worker-rpc.message js_of_ocaml js_of_ocaml-toplevel lwt))
22
23; Browser test alias - runs Playwright
24; Requires: cd test/browser && npm install (once)
25(alias
26 (name browser)
27 (deps
28 client_test.bc.js
29 test_worker.bc.js
30 (source_tree .)))
31
32(rule
33 (alias runbrowser)
34 (deps
35 client_test.bc.js
36 test_worker.bc.js
37 (source_tree .))
38 (action
39 (chdir %{project_root}/test/browser
40 (progn
41 (echo "Running browser tests with Playwright...\n")
42 (run node run_tests.js)))))