garrettdimon / minitest-heat Goto Github PK
View Code? Open in Web Editor NEWA custom reporter for Minitest to help you more effectively fix code when tests fail.
License: MIT License
A custom reporter for Minitest to help you more effectively fix code when tests fail.
License: MIT License
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'
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 ๐
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.