From 401809aaab1b45ed902f234e510e40116ca252a6 Mon Sep 17 00:00:00 2001 From: Etienne Millon Date: Wed, 9 Aug 2023 14:32:29 +0200 Subject: [PATCH] dune build @runtest -> dune test (#1430) --- data/tutorials/platform/bp_03_run_executables_and_tests.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/tutorials/platform/bp_03_run_executables_and_tests.md b/data/tutorials/platform/bp_03_run_executables_and_tests.md index d75cfcc7a9..4fc7cf4211 100644 --- a/data/tutorials/platform/bp_03_run_executables_and_tests.md +++ b/data/tutorials/platform/bp_03_run_executables_and_tests.md @@ -42,10 +42,9 @@ You can run it with `dune exec bin/main.exe` or `dune exec my-app`. ## Running Tests - > **TL;DR** > -> Add a `test` stanza in your `dune` file and run the tests with `dune build @runtest`. +> Add a `test` stanza in your `dune` file and run the tests with `dune test`. Tests are created using Dune's `test` stanza. The `test` stanza is a simple convenience wrapper that will create an executable and add it to the list of tests of the `@runtest` target. @@ -63,7 +62,7 @@ with a module `dummy_test.ml`: let () = exit 1 ``` -Running `dune build @runtest` will fail with the following output: +Running `dune test` will fail with the following output: ``` dummy_test alias src/ocamlorg_web/test/runtest (exit 1) @@ -101,7 +100,7 @@ let () = Alcotest.run "Dummy" [ "Greeting", suite ] ``` -If we run `dune build @runtest` again, the test should be successful and output the following: +If we run `dune test` again, the test should be successful and output the following: ```