jakemcc / test-refresh

Refreshes and reruns clojure.tests in your project.
393 stars 28 forks source link

Allow using custom keyword instead of :test-refresh/focus #79

Closed metametadata closed 5 years ago

metametadata commented 5 years ago

The new :test-refresh/focus feature is very handy but it's tiresome to type this keyword every time. Would be helpful if it was shorter. E.g. by allowing customizing it in project.clj configuration:

:test-refresh {
  :focus-marker :myfocus
}
jakemcc commented 5 years ago

Thanks for the feedback. It is great to hear that it here are enjoying the feature a lot too.

This seems like a reasonable request. I don't think I'll have the time to implement it in the next week.

If you want it quicker, I'd be open to a PR.

On Thu, Jan 24, 2019, 13:09 Yuri Govorushchenko <notifications@github.com wrote:

The new :test-refresh/focus feature is very handy but it's tiresome to type this keyword every time. Would be helpful if it was shorter. E.g. by allowing customizing it in project.clj configuration:

:test-refresh { :focus-marker :myfocus }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jakemcc/lein-test-refresh/issues/79, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHzpjV7bDxr8EhQ9SB_FFtqRBhzthzvks5vGgUEgaJpZM4aRho4 .

jakemcc commented 5 years ago

This has been released in version 0.24.0. Check the readme and sample.project.clj for how to configure.

Thanks for the idea!