-
Notifications
You must be signed in to change notification settings - Fork 470
Cannot run tests in bytecode mode #5515
Copy link
Copy link
Closed
ocaml/opam-repository
#22498Milestone
Description
This is a follow-up to janestreet/ppx_inline_test#19, which I found after separately encountering this issue. I'd be happy to submit a PR and add tests, if someone could point me in the right direction.
Expected Behavior
Inline tests should be able to run in bytecode mode, for use with ocamldebug, etc.
Actual Behavior
$ dune test
File "dune", line 4, characters 1-28:
4 | (inline_tests (modes byte))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
inline_test_runner_test alias runtest (exit 1)
You are doing something unexpected with the tests. No tests have
been run. You should use the inline_tests_runner script to run
tests.
make: *** [all] Error 1
Reproduction
https://gist.github.com/dariusf/78e40f07c62e04e2781d45c4cb6065e3
This is for ppx_expect, and the linked issue finds it in ppx_inline_test. I'm not sure how to reproduce using generate_runner, which is used in existing tests.
Specifications
- Version of
dune(output ofdune --version): 3.0.2 - Version of
ocaml(output ofocamlc --version): 4.13.1 - Operating system (distribution and version): macOS Monterey 12.2.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels