Replies: 1 comment 2 replies
-
This is not the case. Dune only avoids rerunning inline tests in one scenario: the inline test binary remained the same. Given that this binary depends on the library itself, almost any change in the library is going to cause the binary to be re-run. So what you are doing is the recommended practice and you aren't losing anything on recompilation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a couple of modules which contain resources for tests. I don't want to bloat the library/executable so I don't want them included in the library itself when building for release. I currently put those files, along with the tests that use them, in a separate library. If I understand correctly this causes longer builds - a change in the main library itself, causes all tests to be recompiled/reran.
If I understand correctly, if tests are in the same library as the main library dune is able to recompile only the tests which changed.
I expected that the
libraries
stanza ininline_tests
can be used for that but it seems like it's just for libraries for the runner (?).Beta Was this translation helpful? Give feedback.
All reactions