-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Supporting clojure.test/with-test #707
Comments
It should be possible, yes. I will look into this, but possibly not for a little while. This is way of writing tests was obviously a supported feature early in Clojure's history, but I don't think many people write tests this way in practice. |
I see. Honestly, I’m trying to figure out if this style of testing is worth the pain, given the lack of tool support. I like the idea to define tests and functions in the same place, I think it gives you a much better context, but the supposed advantage could be offset if the friction with tools is too high. |
Btw, @jeffvalk any plans to work on this? |
I hadn't thought about it...but now that I am, I'm not sure why this doesn't work as is. I'll look at it. |
Great! |
My guess would be that Just a guess, though. :-) |
@Malabarba Yep, seems likely. If that's the case, running tests with |
Maybe. :-) Although we might have to account for tests being in the same namespace and in a test namespace (which shouldn't be hard to do). |
Did someone check this? |
@bbatsov Yes. @Malabarba is right. And the forthcoming (very soon!) commit to add #1226 will close this issue. |
@jeffvalk sorry if I missed something obvious, but how is this issue fixed? As in, how exactly do I run the tests defined with |
|
@bbatsov but how exactly do you run the tests? Neither |
|
Ah, I forgot about something - http://cider.readthedocs.io/en/latest/running_tests/
|
Would it be possible to extend Cider to support the
clojure.test/with-test
macro?Basically, I’d like to run tests defined in this way, too:
Right now, these are not loaded because they are attached as meta data to the functions.
The text was updated successfully, but these errors were encountered: