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 129 forks source link

Stack overflow exception in JUnit emitter #481

Closed oryband closed 2 years ago

oryband commented 2 years ago

I have the following unit test, which throws a java.lang.StackOverflowError exception (below). I don't understand why. Looks like there's some sort of infinitie loop going on in the emitter code.

(let [url "some url"
      request-endpoint "some endpoint"
      auth-key "some auth key"
      request-body-clojure {}
      response-body-clojure {}
      some-arg {}
      some-result "some result"]

  ; this throws the exception
  (fact
    (my-fn some-arg) => some-result
    (provided (http-post (str url request-endpoint) auth-key request-body-clojure) => response-body-clojure))

  ; this doesn't
  (fact
    (let [s (str url request-endpoint)]
      (my-fn config realm-name) => some-result
      (provided (http-post s auth-key request-body-clojure) => response-body-clojure))))
LOAD FAILURE for my-app.t-core
clojure.lang.Compiler$CompilerException: Syntax error compiling at (my-app/t_core.clj:8:1).
    data: #:clojure.error{:phase :compile-syntax-check,
                          :line 8,
                          :column 1,
                          :source "my-app/t_core.clj"}
           java.lang.StackOverflowError:
                                                                ...
                                                 clojure.core/apply                   core.clj:  669
                                          clojure.core/update-in/up                   core.clj: 6174
                                          clojure.core/update-in/up                   core.clj: 6173
                                             clojure.core/update-in                   core.clj: 6175
                                             clojure.core/update-in                   core.clj: 6161
                                                                ...
                                                 clojure.core/swap!                   core.clj: 2358
      midje.data.prerequisite-state/record-end-of-prerequisite-call     prerequisite_state.clj:   62
                     midje.data.prerequisite-state/best-call-action     prerequisite_state.clj:   80
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  140
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                                midje.emission.api/bounce-to-plugin                    api.clj:   30
                                midje.emission.api/bounce-to-plugin                    api.clj:   26
                                                                ...
                                            midje.emission.api/fail                    api.clj:   49
            midje.data.prerequisite-state/fail-fake-unexpected-args     prerequisite_state.clj:  132
                   midje.data.prerequisite-state/handle-mocked-call     prerequisite_state.clj:  155
midje.data.prerequisite-state/fn-fakes-binding-map/var->faker-fn/fn     prerequisite_state.clj:  162
                                                                ...
                                                 clojure.core/apply                   core.clj:  667
                         midje.emission.colorize/build-colorizer/fn               colorize.clj:   14
                                                                ...
                         midje.emission.plugins.util/failure-notice                   util.clj:  191
             midje.emission.plugins.default-failure-lines/summarize  default_failure_lines.clj:  144
                 midje.emission.plugins.junit/testcase-with-failure                  junit.clj:   87
                                  midje.emission.plugins.junit/fail                  junit.clj:   96
                                                                ...
philomates commented 2 years ago

hey, sorry for the delay. It looks like it wasn't an issue with the JUnit plugin. I have a change in https://github.com/marick/Midje/pull/485 that provides a helpful error message when you come across this