Code Monkey home page Code Monkey logo

minitest-heat's Issues

`eval` trips up the backtrace formatter

This was the result of an assert_difference call using WebhookEvent.size instead of WebhookEvent.all.size

Error:
Stripe::WebhookReceiverTest#test_creates_a_webhook_event_record:
NoMethodError: undefined method `size' for WebhookEvent:Class
    (eval):1:in `block in <class:WebhookReceiverTest>'
    test/services/stripe/webhook_receiver_test.rb:36:in `block in <class:WebhookReceiverTest>'

And here's the Minitest Heat backtrace:

Sorry, but Minitest Heat couldn't display output for a failure. Disabling Minitest Heat can get you back on track until the problem can be fixed.
Please use the following exception details to submit an issue at https://github.com/garrettdimon/minitest-heat/issues
undefined method `strip' for nil:NilClass:
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/backtrace.rb:111:in `source_code_line_token'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/backtrace.rb:61:in `backtrace_line_tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/backtrace.rb:26:in `block in tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/backtrace.rb:24:in `each'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/backtrace.rb:24:in `tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/issue.rb:123:in `backtrace_tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/issue.rb:32:in `error_tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output/issue.rb:16:in `tokens'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:65:in `issue_details'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:57:in `block (2 levels) in issues_list'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:57:in `each'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:57:in `block in issues_list'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:54:in `each'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat/output.rb:54:in `issues_list'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-heat-0.0.10/lib/minitest/heat_reporter.rb:93:in `report'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-5.14.4/lib/minitest.rb:866:in `each'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-5.14.4/lib/minitest.rb:866:in `report'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-5.14.4/lib/minitest.rb:146:in `run'
  /Users/garrettdimon/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/minitest-5.14.4/lib/minitest.rb:68:in `block in autorun'

Grey color hard to read on light background

Exceptions and secondary info are rendered in a light grey color which is super hard to read on light backgrounds.

Screenshot 2024-03-02 at 6 03 35โ€ฏPM

Maybe a light mode, configurable, or just a more overt default color?

Configurations: Setting slow-thresholds, perhaps even path based.

Hello, I heard about this gem on the Honeybadger podcast and had to try it out!

I found in the code that you would like to allow configuration in the future.

I would like to suggest that these configurations can support paths, for example having higher thresholds for everything in test/system.

Please tell me if I can help you out with anything, and feel free to close the issue if you want to ๐Ÿ™‚

minitest-reporters

Very nice gem, thanks a lot!

How can it be used minitest-reporters? Looking at the source I'm not sure it's currently compatible at this point.

If implemented similarly to other reporters such as minitest-sound, a setup might look something like:

require 'minitest/reporters'
require 'minitest/sound/reporter'
require 'minitest/heat/reporter'
Minitest::Reporters.use! [Minitest::Sound::Reporter.new, Minitest::Heat::Reporter.new]

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.