In porting a project across from oasis based build to jbuilder and I’ve run into an issue with running the tests. Basically I’ve got 2 sets of tests test_dispatch and test_logic both with their own main runners. The jbuilder file below compiles both files but only seems to run the first test executable but not the second one. Is there a way to have both run? I assumed the deps section was the correct place to list them.
(jbuild_version 1)
(executables
((libraries (calendar cohttp webmachine re re.str))
(modules (test_dispatch))
(names (test_dispatch))))
(executables
((libraries (calendar cohttp webmachine re re.str))
(modules (test_logic))
(names (test_logic))))
(alias
((name runtest)
(package webmachine)
(deps (test_logic.exe test_dispatch.exe))
(action (run ${<}))))
I could combine the tests into a single main runner but I’d prefer to keep them separate if possible.