Skip to content

Commit 51dd253

Browse files
committed
test(runtest): runtest hints
Signed-off-by: Ali Caglayan <[email protected]>
1 parent a6d7819 commit 51dd253

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Test the "did you mean" hints for dune runtest command.
2+
3+
$ cat > dune-project <<EOF
4+
> (lang dune 3.21)
5+
> EOF
6+
7+
$ mkdir dir.t other_dir
8+
$ cat > dir.t/run.t <<EOF
9+
> $ echo "Directory-based cram test"
10+
> Directory-based cram test
11+
> EOF
12+
$ cat > dir_t
13+
14+
$ dune test dip.t
15+
Error: "dip.t" does not match any known test.
16+
Hint: did you mean dir_t or dir.t?
17+
[1]
18+
19+
$ dune test other_dip
20+
Error: "other_dip" does not match any known test.
21+
Hint: did you mean other_dir?
22+
[1]

0 commit comments

Comments
 (0)