Skip to content

How to execute "slow" tests? #151

Closed

Description

@hannesm

(from mirage/mirage-tcpip#405 (comment))
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?

Activity

  1. emillon commented on May 23, 2019

    @emillon
    Contributor

    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.

  2. craigfe commented on Jul 31, 2019

    @craigfe
    Member

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

  3. samoht commented on Jul 31, 2019

    @samoht
    Member

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions