Skip to content

test-ns-hook #34

@danielsz

Description

@danielsz

clojure.test supports an alternative way to run tests when the order in which the tests are run are of importance. Below is quote from the docs that explain the mechanism. This mode of operation is not supported by boot-test. If this is something we want to support, we should add this feature, or if the sentiment is that it is not widely used, we should document the lack of support for it (in the README?).

By default, these functions will search for all tests defined in
a namespace and run them in an undefined order. However, if you
are composing tests, as in the "arithmetic" example above, you
probably do not want the "addition" and "subtraction" tests run
separately. In that case, you must define a special function
named "test-ns-hook" that runs your tests in the correct order:

(defn test-ns-hook []
  (arithmetic))

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