We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(change-defaults :fact-filter (complement :slow))
in .midje.clj works when calling load-facts or running tests through lein-midje. The test ignores :slow facts as expected.
.midje.clj
load-facts
:slow
However, creation-time checking when loading a namespace does not ignore :slow facts.
The text was updated successfully, but these errors were encountered:
@totakke can you expand on what do you mean by creation-time checking?
creation-time checking
Sorry, something went wrong.
@rafaeldff Sorry, creation-time checking means automatic checking just after ns loaded. For example, when there are the following tests
ns
(fact "normal" 0 => 1) (fact :slow "slow" 1 => 2)
on .midje.clj
$ lein midje #=> normal fact is tested $ lein midje :filter slow #=> slow fact is tested
This is expected. But creation-time checking ignores .midje.clj, running both tests.
user=> (require 'example.t-core) ;; => normal and slow facts are tested
In my case, cider-refresh hanged because it triggered to run slow tests.
cider-refresh
(change-defaults :check-after-creation false)
disables creation-time checking, but it disables lein midje too.
lein midje
$ lein midje No facts were checked. Is that what you wanted?
are these behaviors expected?
No branches or pull requests
in
.midje.clj
works when callingload-facts
or running tests through lein-midje. The test ignores:slow
facts as expected.However, creation-time checking when loading a namespace does not ignore
:slow
facts.The text was updated successfully, but these errors were encountered: