alcotest icon indicating copy to clipboard operation
alcotest copied to clipboard

How to execute "slow" tests?

Open hannesm opened this issue 5 years ago • 3 comments

(from https://github.com/mirage/mirage-tcpip/pull/405#issuecomment-490364370) with the current integration story, all I have to do is to execute dune runtest that builds and executes the tests (unless there was no modification).

but only the `Quick tests are executed by the above command. How can the `Slow tests be executed? One way is to execute the test binary itself (_build/default/test/test.exe), but @samoht suggested "you need to create a new test alias for this". What I don't understand is that when executing the test executable directly, it runs all the tests, but dune runtest only runs the `Quick ones, where is this decision/check made?

hannesm avatar May 08 '19 08:05 hannesm

where is this decision/check made?

The reason is here: (action) determines how the test executable is invoked by dune runtest. In that case, it is passing the -q flag which skips slow tests.

emillon avatar May 23 '19 14:05 emillon

Do we want to add some Dune-specific documentation showing an example of an Alcotest stanza?

craigfe avatar Jul 31 '19 16:07 craigfe

yes that'd be a good idea -- even better, it would be nice if dune could support passing parameters to test stanza (currently it's not possible).

samoht avatar Jul 31 '19 16:07 samoht