Open tgk opened 10 months ago
Can you share your deps.edn alias with the config? I have seen that once when nothing gets instrumented because some issue in the instrumentation config.
@jpmonettas of course! Sorry for the delay:
:clofidence
{:classpath-overrides {org.clojure/clojure nil}
:extra-deps {com.github.flow-storm/clojure {:mvn/version "LATEST"} ; >= 1.11.1-15
com.github.flow-storm/clofidence {:mvn/version "LATEST"}}
:exec-fn clofidence.main/run
:exec-args {:report-name "API"
:test-fn cognitect.test-runner.api/test
:test-fn-args [{}]}
:jvm-opts
["-Dclojure.storm.instrumentOnlyPrefixes=my-app"
"-Dclojure.storm.instrumentSkipPrefixes=my-app.unwanted-ns1,my-app.unwanted-ns2"
"-Dclojure.storm.instrumentSkipRegex=.*test.*"
"-Duser.timezone=UTC"
"-XX:-OmitStackTraceInFastThrow"]}
Seeing this and your comment made me realize it's probably the "-XX:-OmitStackTraceInFastThrow"
:thinking: Thanks!
Ah, also I just copied the pattern for what should be instrumented. Sorry, obviously that's the problem.
That solved it! Sorry for the noise. It might be nice to have better error reporting for my (admittedly stupid) mistake.
Great to hear it is solved! Yeah I agree that error is very confusing for a common mistake like wrong instrumentation. I'll leave this open and something for it!
I attempted to use clofidence to generate a test report for our internal API using the
README
as a guide. After using the configuration from theREADME
and running$ clj -X:test:clofidence
the test suite runs just fine but when it comes to generating the report it errs: