# \#ppx\_inline\_test

**URL:** https://discuss.ocaml.org/tag/ppx-inline-test/363.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [\[ANN\] (ppx\_inline\_test|ppx\_expect)\_nobase](https://discuss.ocaml.org/t/ann-ppx-inline-test-ppx-expect-nobase/17024)

<div class="topic-metadata">

**Author:** [@Kakadu](https://discuss.ocaml.org/u/Kakadu)\
**Replies:** 1\
**Last updated:** [August 20, 2025, 8:11am UTC](https://discuss.ocaml.org/t/ann-ppx-inline-test-ppx-expect-nobase/17024 "2025-08-20T08:11:10Z")

</div>

Recently I got tied of opam which wants to upgrade many packages which one of it’s dependencies is upgradable. Usually it happened for ppx\_inline\_test/ppx\_expect packages, because some JaneStreet’s package was going to b…

---

## [Broken ppx\_inline\_test?](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956)

<div class="topic-metadata">

**Author:** [@giltho](https://discuss.ocaml.org/u/giltho)\
**Replies:** 2\
**Last updated:** [January 14, 2025, 3:39pm UTC](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956 "2025-01-14T15:39:42Z")

</div>

Hello, I’m having trouble compiling something with ppx\_inline\_test under OCaml 5.3 and I’m not sure what’s happening. When using module%test, I simply get Error: value expected (both in lsp and when building). I’ve …

---

## [Unit testing custom types with %test\_eq:](https://discuss.ocaml.org/t/unit-testing-custom-types-with-test-eq/14476)

<div class="topic-metadata">

**Author:** [@Cato](https://discuss.ocaml.org/u/Cato)\
**Replies:** 2\
**Last updated:** [April 11, 2024, 11:28pm UTC](https://discuss.ocaml.org/t/unit-testing-custom-types-with-test-eq/14476 "2024-04-11T23:28:00Z")

</div>

For context I am an ocaml beginner working through Types and Programming Languages. I want to write inline tests using %test\_eq as shown in real world ocaml, for example: type colour = Red | Blue \[@@deriving sexp, comp…

---

## [How to keep static builds as is while adding ppx\_expect support for dev/test builds?](https://discuss.ocaml.org/t/how-to-keep-static-builds-as-is-while-adding-ppx-expect-support-for-dev-test-builds/12915)

<div class="topic-metadata">

**Author:** [@erikmd](https://discuss.ocaml.org/u/erikmd)\
**Replies:** 4\
**Last updated:** [September 4, 2023, 1:46am UTC](https://discuss.ocaml.org/t/how-to-keep-static-builds-as-is-while-adding-ppx-expect-support-for-dev-test-builds/12915 "2023-09-04T01:46:10Z")

</div>

Dear all, Cc @yurug @AltGr, I have an issue related to dune, ppx\_expect, and linking. Context: I’m working on learn-ocaml, to implement ppx\_expect and ppx\_inline\_test support. I added several unit tests in src/state/…

---

## [Inline\_tests failing with SEGV](https://discuss.ocaml.org/t/inline-tests-failing-with-segv/11992)

<div class="topic-metadata">

**Author:** [@os12345678](https://discuss.ocaml.org/u/os12345678)\
**Replies:** 12\
**Last updated:** [April 20, 2023, 12:59pm UTC](https://discuss.ocaml.org/t/inline-tests-failing-with-segv/11992 "2023-04-20T12:59:06Z")

</div>

i am writing various unit tests for my program using ppx\_expect. when i auto-promote my test file, if i have \>1 test, it fails with 3 | (inline\_tests) ^^^^^^^^^^^^^^ Command got signal SEGV. If there is only 1 test …

---

## [Word diff in longer test\_eq strings](https://discuss.ocaml.org/t/word-diff-in-longer-test-eq-strings/10381)

<div class="topic-metadata">

**Author:** [@olleharstedt](https://discuss.ocaml.org/u/olleharstedt)\
**Replies:** 17\
**Last updated:** [January 22, 2023, 9:23pm UTC](https://discuss.ocaml.org/t/word-diff-in-longer-test-eq-strings/10381 "2023-01-22T21:23:20Z")

</div>

Is there a way to make it easier to see the exact difference between two longer strings, when using inline tests? \[%test\_eq: string\] long\_string second\_long\_string Since the test run just spits out both strings, it’s h…

---

## [Can I make inline test stop on first failure?](https://discuss.ocaml.org/t/can-i-make-inline-test-stop-on-first-failure/10392)

<div class="topic-metadata">

**Author:** [@olleharstedt](https://discuss.ocaml.org/u/olleharstedt)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 5:35pm UTC](https://discuss.ocaml.org/t/can-i-make-inline-test-stop-on-first-failure/10392 "2022-10-31T17:35:07Z")

</div>

Would be nice when many tests fail at once, to start from the top. Now the output is a bit hard to read. I can’t even pipe it to less because it’s not writing to stdout. Can that be configured, too? (Yes, I know I can re…

---

## [Expect exception with inline test](https://discuss.ocaml.org/t/expect-exception-with-inline-test/10350)

<div class="topic-metadata">

**Author:** [@olleharstedt](https://discuss.ocaml.org/u/olleharstedt)\
**Replies:** 6\
**Last updated:** [September 24, 2022, 7:23pm UTC](https://discuss.ocaml.org/t/expect-exception-with-inline-test/10350 "2022-09-24T19:23:17Z")

</div>

For some reason, Read World OCaml does not cover testing for exceptions. https://dev.realworldocaml.org/testing.html Not possible? I could reg exp the stack trace, I guess, but seems like a roundabout kinda way. Seems…

---

## [Ppx\_inline\_test and Makefiles](https://discuss.ocaml.org/t/ppx-inline-test-and-makefiles/5624)

<div class="topic-metadata">

**Author:** [@Chet\_Murthy](https://discuss.ocaml.org/u/Chet_Murthy)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 5:21pm UTC](https://discuss.ocaml.org/t/ppx-inline-test-and-makefiles/5624 "2020-07-14T17:21:40Z")

</div>

\[I’m debugging (dune’s \_build/log is useful here) and will undoubtedly be able to figure it out) but thought I’d ask just in case somebody else already figured it out\] I want to be able to run tests written using ppx\_i…
