Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-ns-hook #34

Open
danielsz opened this issue Jul 30, 2017 · 1 comment
Open

test-ns-hook #34

danielsz opened this issue Jul 30, 2017 · 1 comment

Comments

@danielsz
Copy link

danielsz commented Jul 30, 2017

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))
@borkdude
Copy link

I for one wanted this feature today, but then discovered this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants