Skip to content

Commit

Permalink
(docs) add information on dune watch mode to "Running Executables and…
Browse files Browse the repository at this point in the history
… Tests with Dune" (#2092)

* Update bp_03_run_executables_and_tests.md

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Christine Rose <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Christine Rose <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Christine Rose <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Cuihtlauac Alvarado <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Cuihtlauac Alvarado <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

Co-authored-by: Christine Rose <[email protected]>

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

* Update data/tutorials/platform/bp_03_run_executables_and_tests.md

---------

Co-authored-by: Christine Rose <[email protected]>
Co-authored-by: Cuihtlauac Alvarado <[email protected]>
Co-authored-by: sabine <[email protected]>
  • Loading branch information
4 people authored Oct 1, 2024
1 parent d03bd84 commit 5f3f1af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/tutorials/platform/0_03_run_executables_and_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ For instance, if you've put your `dune` file in `bin/dune` with the following co

You can run it with `dune exec bin/main.exe` or `dune exec my-app`.

## Automatic Recompiling on File Changes

Compiling a project with `dune exec <executable_path>.exe` can take time, especially with many files. To speed this up, you can use `dune build --watch`, which automatically recompiles files as they change.

Keep in mind:

* `dune build --watch` monitors files and triggers necessary recompilation.
* Dune locks the build directory, so you can't run two Dune commands simultaneously.
* To run the application, stop the watch process (Ctrl-C) or execute the app directly with `_build\default\<executable_path>.exe`.
## Running Tests

> **TL;DR**
Expand Down

0 comments on commit 5f3f1af

Please sign in to comment.