From 17e52c4eb411fe4dd1b1f65671a0c5ffdc71f66d Mon Sep 17 00:00:00 2001 From: Clombrong Date: Tue, 1 Jul 2025 21:29:23 +0200 Subject: feat(flesh): add ppx_expect inline testing in dune and portal-tcp to run inline test executables --- dune-project | 4 +++- flesh.opam | 2 ++ lib/dune | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dune-project b/dune-project index c16a7f9..128429f 100644 --- a/dune-project +++ b/dune-project @@ -28,10 +28,12 @@ base64 ppx_deriving domain-name + ppx_expect (js_of_ocaml-compiler :with-test) (merlin :with-test) - (utop :with-test)) + (utop :with-test) + (portal-tcp :with-test)) (tags (xmpp lwt))) diff --git a/flesh.opam b/flesh.opam index 301310b..8c4162f 100644 --- a/flesh.opam +++ b/flesh.opam @@ -17,9 +17,11 @@ depends: [ "base64" "ppx_deriving" "domain-name" + "ppx_expect" "js_of_ocaml-compiler" {with-test} "merlin" {with-test} "utop" {with-test} + "portal-tcp" {with-test} "odoc" {with-doc} ] build: [ diff --git a/lib/dune b/lib/dune index 9369a82..36c2ece 100644 --- a/lib/dune +++ b/lib/dune @@ -6,4 +6,6 @@ portal markup markup-lwt) - (preprocess (pps ppx_deriving.show))) + (inline_tests + (libraries portal-tcp)) + (preprocess (pps ppx_deriving.show ppx_expect))) -- cgit v1.2.3