lambdaisland / kaocha

Full featured next gen Clojure test runner
https://cljdoc.org/d/lambdaisland/kaocha/1.0.861/doc/1-introduction
Eclipse Public License 1.0
792 stars 81 forks source link

Print values of the stdout and stderr in shell #428

Closed juusechec closed 8 months ago

juusechec commented 8 months ago

Hi all and thanks for your work. I'm using kaocha runner in this way:

(kaocha.runner/exec-fn {
     :tests           [{:skip       [...]
                        :test-paths [...]}]
}))

Everything executes well, but when I have an error in the projects that I am testing, It's difficult to see because the stdout is hidden. What is the parameter to show all messages printed to stdout?

plexus commented 8 months ago

Please make minimal effort to read the documentation, or ask the community in Slack. This is a place to report bugs and issues, not a support channel. Note that exec-fn is community contributed, we don't make any attempt to offer support for it. If you want to invoke kaocha programmatically use kaocha.repl or kaocha.api.

You can try --print-config to see what the correct name of the configuration flag is, but I can't guarantee it'll get passed down when using exec-fn.

juusechec commented 8 months ago

👋 Thank you. A GitHub issue template with a checklist could help people to understand it. Sorry for the nuisance! If anyone is looking for a solution in the future:

(kaocha.runner/exec-fn {
     :tests           [{:skip       [...]
                        :test-paths [...]}]
+    :capture-output? false                   
}))