Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 520

How to properly exclude directories from cram tests?

$
0
0

The documentation for cram mentions

(cram (applies_to * \ foo bar) (deps ../foo.exe))

We use the Predicate Language to apply this stanza to all tests in this directory, except for foo.t and bar.t.

But for some reason I only get the expected behavior of excluding foo.t and bar.t if I instead write

(cram 
  (enable_if false)
  (applies_to foo bar) ...)

Furthermore, I don’t understand why the enable_if clause is needed here.

Am I doing this wrong or is this an issue that should be reported?

(I tested this with dune 3.6.2)

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 520

Trending Articles