Skip to content

Cannot run tests in bytecode mode #5515

@dariusf

Description

@dariusf

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 of dune --version): 3.0.2
  • Version of ocaml (output of ocamlc --version): 4.13.1
  • Operating system (distribution and version): macOS Monterey 12.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions