ghostwheel

Hassle-free clojure.spec, automatic generative testing, side effect detection, and evaluation tracing for Clojure(-Script) – https://github.com/gnl/ghostwheel
genekim 2018-08-21T05:24:39.000100Z

@clojurians.net Sorry for the repeat question — the short history in this Slack instance can be quite inconvenient! If I set ::g/trace to the true at the namespace level, is there a way I can selectively disable tracing for specific functions in the defn? I know you can do ^::g/trace... But is there an equivalent ^::g/untrace or something? Thank you! PS: experience report continues: I'm bringing ghostwheel into all my projects, and I'm continuing to love it. I'd love to create a spec to confirm that output is hiccup format.. I remember a link somewhere to reagent that I'll be chasing down soon. I haven't started the proposed doc changes, but it will definitely integrate some examples of configuring tracing, etc... I'm keeping a gist of all the relevant examples for my own use. I've learned so much about spec and even Clojure using Ghostwheel.

1
genekim 2018-08-21T05:41:48.000100Z

...or a better question: is there a way to set ::g/trace level at the function level? (e.g., 0-5)? Thanks again!

gnl 2018-08-21T08:26:19.000100Z

@genekim Oh, ::g/trace is just a regular metadata key like everything else and it's set to 0 by default. So you just have to attach it to the function like you would any other function metadata in Clojure, so either (>defn ^{::g/trace 0} fn-name ...) or (>defn fn-name {::g/trace 0} ...}

genekim 2018-08-21T14:18:25.000100Z

Ah! The attr-map. Got it. Thank you!!!! (Adding it to my doc TODO list and gist. :)

👍 1