-
Notifications
You must be signed in to change notification settings - Fork 84
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
print-config cannot be enabled from exec-fn #401
Comments
I believe you are correct— |
Yeah, I guess you could call it consistency. We don't use I'm happy to do some work in the code to improve this and issue a PR. But I've attempted to tackle the maximal "make everything share the things they should share" approach and got a little lost in there. So I might have to try to find a smaller chunk to bite off. |
Thinking about it more, perhaps a better way to go is to create a convenient API function for |
Hi @cap10morgan, are you still interested in addressing this with a PR? My last comment offers a suggestion for doing it in a smaller chunk. |
@alysbrooks Sure, maybe. I'm not sure your suggestion would solve my use case, though. I'm trying to pass in other config params via the |
You can verify what comes out using a REPL (require '[kaocha.config :as config])
(def exec-args {....})
(config/merge-config (config/load-config) (config/normalize exec-args)) This is essentially the same normalization that you achieve by putting |
Would something like this be enough? I haven't actually tested it, but I don't think there's harm in checking for these keys and having similar behavior as in the real test runner. @cap10morgan if you could test that and turn it into a proper PR with CHANGELOG and doc updates that would be very helpful! |
@plexus I'll give it a shot, thanks! |
@cap10morgan ah, right wasn't thinking of that usecase. Makes sense. We should perhaps have some documentation around |
I think it would be helpful to have reference docs about all the (fully qualified) keys that can go into kaocha's config, and then separately document how config normalization works, which mainly involves translating short keywords into fully qualified ones. This would be all the documentation you need for exec-fn, except perhaps for other special keys we introduce like the proposed |
This is working great and solves my original problem well! I'll work it up into a PR. Thanks! |
Linking my (closed as "as designed") issue #410 for the sake of documentation. |
Seemingly related to #312, I can't seem to find a way to enable
print-config
from anexec-fn
-X invocation. And this line being the only hit forprint-config
when searching the repo makes me think it likely isn't currently possible.The text was updated successfully, but these errors were encountered: