marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.68k stars 128 forks source link

System property to avoid test-on-load #482

Closed vemv closed 1 year ago

vemv commented 1 year ago

https://github.com/marick/Midje/issues/372, while closed, remains a real issue for users of various tools e.g. tools.namespace, Eastwood, refactor-nrepl, CIDER - anything "runtime based" really which is a pretty broad spectrum of choices today!

The issue suggests touching a .midje file, however that is a global side-effect that can easily alter a given user's actual preference.

So something like a Java System property would be cleaner.

Example use case:

Would you be so kind to implement this simple tweak?

Thanks - V

philomates commented 1 year ago

good idea! Would be really cool to be able to more easily use things like eastwood on codebases with midje tests.

Does https://github.com/marick/Midje/pull/483 do the trick for you?

vemv commented 1 year ago

Looks excellent to me! 🙌🍻

philomates commented 1 year ago

cool, deployed as 1.10.6

vemv commented 1 year ago

This worked like a charm - I set the "-Dmidje.check-after-creation=false" property before running Eastwood and it no longer runs tests.

Thanks again!