marick / Midje

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

Allow setting midje config via java system properties #483

Closed philomates closed 2 years ago

philomates commented 2 years ago

addresses https://github.com/marick/Midje/issues/482

allows for doing things like:

(System/setProperty "midje.check-after-creation" "false")

;; run Eastwood analysis...

(System/setProperty "midje.check-after-creation" "true")

this is important because things like Eastwood analysis will load a bunch of namespaces but we want to avoid executing midje facts tests because that slows things down / has side-effects.

Given a config key like :my-key, the way to override it via system properties would be to set "midje.my-key"