janestreet / ppx_inline_test

Syntax extension for writing in-line tests in ocaml code
MIT License
130 stars 22 forks source link

how to run tests for this package? #22

Closed chetmurthy closed 3 years ago

chetmurthy commented 4 years ago

I'm trying to figure out how to run the tests for this package, but get an error:

chet@twitter:~/Hack/Camlp5/src/ppx_inline_test$ dune runtest
File "test/dune", line 8, characters 0-897:
 8 | (rule (targets test.output test-partitions.output test-inlining.output)
 9 |  (deps ./inline_tests_runner ./inline_tests_runner.exe)
10 |  (action
....31 |    \n  echo\
32 |    \n  run -require-tag x-library-inlining-sensitive -verbose\
33 |    \n) > test-inlining.output")))
Error: No rule found for test/inline_tests_runner
File "test/dune", line 8, characters 0-897:
 8 | (rule (targets test.output test-partitions.output test-inlining.output)
 9 |  (deps ./inline_tests_runner ./inline_tests_runner.exe)
10 |  (action
....31 |    \n  echo\
32 |    \n  run -require-tag x-library-inlining-sensitive -verbose\
33 |    \n) > test-inlining.output")))
Error: No rule found for test/inline_tests_runner.exe

Any suggestions for how to run these tests? I forgot to mention that I have the package installed:

 ocamlfind list | grep inline_test
ppx_inline_test     (version: 0.13.1)
ppx_inline_test.config (version: 0.13.1)
ppx_inline_test.drop (version: 0.13.1)
ppx_inline_test.libname (version: 0.13.1)
ppx_inline_test.runner (version: 0.13.1)
ppx_inline_test.runner.lib (version: 0.13.1)
ppx_inline_test.runtime-lib (version: 0.13.1)
v-gb commented 3 years ago

My understanding is that, in general for jane street packages, the source code of tests is exported but they are not really intended to be run just yet, as there are difficulties. I don't remember offhand what the problems are, but I have the vague recollection that better support for running tests requires progress on this duniverse, which is happening. So I'm going to close this, but I think this will naturally happen eventually.