Skip to content

Fix dune runtest by moving utils expect tests to Alcotest - #375

Open
lykimq wants to merge 3 commits into
masterfrom
quyen@fix_dune_runtest
Open

Fix dune runtest by moving utils expect tests to Alcotest#375
lykimq wants to merge 3 commits into
masterfrom
quyen@fix_dune_runtest

Conversation

@lykimq

@lykimq lykimq commented Jul 30, 2026

Copy link
Copy Markdown
Contributor
  • Remove ppx_expect inline tests from Git_utils / String_utils (they crash under include_subdirs when writing corrected files).
  • Drop inline_tests / ppx_expect from bot-components.
  • Re-add the same coverage as Alcotest in tests/test_git_utils.ml and tests/test_string_utils.ml.
  • Change CI to run full dune build @runtest instead of dune build @tests/runtest

Reason:
dune runtest failed with Sys_error looking for Git_utils.ml / String_utils.ml at the library root instead of utils/.
CI only ran @tests/runtest, so this was easy to miss.

lykimq added 3 commits July 30, 2026 15:04
include_subdirs break expect correction paths and crashes dune runtest; drop the inline tests (and the print-only Git_utils helper) from the library
Move the former expect cases into tests/ so dune runtest and CI exercise them.
@lykimq
lykimq requested a review from Zimmi48 July 30, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants