aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-07-01 21:29:23 +0200
committerClombrong <cromblong@egregore.fun>2025-07-26 21:55:48 +0200
commit17e52c4eb411fe4dd1b1f65671a0c5ffdc71f66d (patch)
treea5e23d53536c857d3590722862655bf0227da24e
parentbd6c41b0507b7cf460f1c789f9800501d9390788 (diff)
feat(flesh): add ppx_expect inline testing in dune
and portal-tcp to run inline test executables
-rw-r--r--dune-project4
-rw-r--r--flesh.opam2
-rw-r--r--lib/dune4
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)))