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

Running a single test from namespace #7

Open
kul opened this issue May 14, 2015 · 6 comments
Open

Running a single test from namespace #7

kul opened this issue May 14, 2015 · 6 comments

Comments

@kul
Copy link

kul commented May 14, 2015

It would be nice to have support for running single tests also. Currently test only takes whole namespace using -n.

@niwinz
Copy link

niwinz commented May 24, 2015

It has the -f for filter, and takes an expression for filtering tests, but I'm not clearly understand how it can be used in a reasonable usable way.

@niwinz
Copy link

niwinz commented May 24, 2015

I have own version of test task completelly based on this package but without humane-test-output and with new additional parameter for filter by name.

So that line:

boot test -f "(= (:name (mata %)) 'foobar)"

Can be used in this maner:

boot test -s foobar

You can found the code here: https://github.com/funcool/bootutils/blob/master/src/funcool/bootutils.clj#L72

@alandipert
Copy link
Member

PRs for -s and a flag to turn on/off humane-test-output would be very welcome, these are great features.

@niwinz
Copy link

niwinz commented May 24, 2015

I'll prepare these PR's in my first free time! ;)

@kul
Copy link
Author

kul commented Jul 23, 2015

Actually for running single tests one can do something like
boot test -n foo.bar -f '(re-find #"my-test" (str %))'

Which although powerful is kind of ugly. Something like boot test -t foo.bar/my-test would be more than enough for practical purposes imo.

@tiye
Copy link

tiye commented Apr 14, 2016

Can we make it simpler to type in?

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

4 participants