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 classification #20

Closed
jvesala opened this issue Mar 2, 2010 · 2 comments
Closed

Test classification #20

jvesala opened this issue Mar 2, 2010 · 2 comments

Comments

@jvesala
Copy link

jvesala commented Mar 2, 2010

As a leiningen user I would like to be able to categorize tests. And execute categories separately.

Currently I have a project with several unit- and integration test files (in different directories). I would like to run all unit tests separately from Webdriver integration tests and vice versa.

If categorization is hard, it would be OK, if I could somehow run all tests from one directory in single execution.

BR, Jussi

@technomancy
Copy link
Owner

I've had something like this in mind for a while now. My idea is to use metadata on the test function vars and accept a predicate on the command-line to determine whether each var should be run. Generally the predicate would just be a keyword.

Unfortunately there's a bug in Clojure 1.2 right now that prevents this from working: http://www.assembla.com/spaces/clojure/tickets/246

But it would work with 1.1.0 and prior.

I hope to implement this eventually, but a patch to support it would not be too hard if you'd like to contribute.

@technomancy
Copy link
Owner

Implemented this a while ago as test selectors.

technomancy pushed a commit that referenced this issue May 15, 2023
…ile' (#20) from cfrick/leiningen:add-repl-options-history-file into main

Reviewed-on: https://codeberg.org/leiningen/leiningen/pulls/20
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants