> In the mean time; I'm happy to hear about what you think, and
> any other improvements I could make to the library.  Some things I
> have in mind for the next version:
>
> 3. Adding test metadata to vars that are already defined elsewhere.
>

I had a related idea the other night. I commonly like to write
functional and system tests using a "unit test" framework, mainly for
the organization and reporting capabilities. Since functional and
system tests are often significantly slower than unit tests, it's nice
to be able to group the tests.

My desired use case is to be able to say something like "run all of
the functional tests that hit the DB". Or, "run all of the functional
tests that hit the UI".

One obvious way to do that is to "tag" tests using metadata. Then the
above use case turns into "run all of the tests that have metadata tag
:foo". The only problem is that tests are functions, but metadata goes
on Vars. This causes problems when a test is attached to the real
function using the :test metadata flag. Is your tag metadata about the
test, or the real fn?

An acceptable alternative would be to have a way to run all the tests
in a namespace and all 'children' of a namespace. Then I could create
a namespace like "test.functional.db.foo" "test.functional.db.bar" and
then say "(run-tests-recursive test.functional.db)" and have it run
the tests in foo and bar.

Thoughts?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to