Git Product home page Git Product logo

Comments (14)

venantius avatar venantius commented on September 2, 2024 1

I think this is because stacktraces within the tests are using a stacktrace printing method that I haven't targeted. Trying to run the tests at the REPL produces the same result. I'll look into this further.

from ultra.

Trylobot avatar Trylobot commented on September 2, 2024 1

Thanks! Love your plugin, by the way. Every Clojurist at my company is using it 👍

from ultra.

venantius avatar venantius commented on September 2, 2024

What version of Ultra are you using? It should be working with lein test.

from ultra.

Trylobot avatar Trylobot commented on September 2, 2024

0.4.1

clone https://github.com/Trylobot/hive-clj
lein test

from ultra.

venantius avatar venantius commented on September 2, 2024

Hmm. So, Ultra is active, but it's not active for stacktraces. I'll look into this.

from ultra.

venantius avatar venantius commented on September 2, 2024

That's awesome! What company?

from ultra.

Trylobot avatar Trylobot commented on September 2, 2024

Yodle (just acquired by web.com)

from ultra.

Jell avatar Jell commented on September 2, 2024

Hello! I had a look at this and I think adding the following to the ultra.test namespace would solve the issue:

(defmethod report :error [m]
  (with-test-out
   (inc-report-counter :error)
   (println "\nERROR in" (testing-vars-str m))
   (when (seq *testing-contexts*) (println (testing-contexts-str)))
   (when-let [message (:message m)] (println message))
   (println "expected:" (pr-str (:expected m)))
   (print "  actual: ")
   (let [actual (:actual m)]
     (if (instance? Throwable actual)
       (pretty-repl/pretty-print-stack-trace actual)
       (prn actual)))))

This is adapted from the original report code here:
https://github.com/clojure/clojure/blob/clojure-1.8.0/src/clj/clojure/test.clj#L383-L394

With the only difference being (pretty-repl/pretty-print-stack-trace actual) instead of (stack/print-cause-trace actual *stack-trace-depth*)

from ultra.

venantius avatar venantius commented on September 2, 2024

@Jell wanna make a PR? 😄

from ultra.

Jell avatar Jell commented on September 2, 2024

@venantius I made one here: #73

from ultra.

tacticiankerala avatar tacticiankerala commented on September 2, 2024

Any update on this?

from ultra.

venantius avatar venantius commented on September 2, 2024

Just left some comments on the PR.

from ultra.

Jell avatar Jell commented on September 2, 2024

I've updated the PR

from ultra.

venantius avatar venantius commented on September 2, 2024

This has been resolved by #73 -- I'll push out a release later today.

from ultra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.