-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Trial implementation of test code for debbuger -single process #9
Conversation
test/minitest_runner.rb
Outdated
|
||
$LOAD_PATH.unshift(__dir__) | ||
|
||
require 'minitest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use "test-unit" instead of minitest
?
ruby/ruby
migrates minitest
to test-unit
in this year.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsbt
Could you teach me detail about it?
I wasn't able to find any reference about the migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, ruby/ruby
uses test-unit
, not minitest
. rubygems and psych only uses minitest namespace. I did migrate them to test-unit
in May, 2021.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show more pretty backtrace like: ``` (rdbg) bt =>#0 block{|i=0, j=nil|} (3 levels) in foo at ~/src/rb/target.rb:12 #1 [C] Integer#times at ~/src/rb/target.rb:11 #2 rescue in rescue in block (2 levels) in foo at ~/src/rb/target.rb:11 #3 rescue in block (2 levels) in foo at ~/src/rb/target.rb:8 #4 block (2 levels) in foo at ~/src/rb/target.rb:5 #5 [C] Integer#times at ~/src/rb/target.rb:4 #6 block{|e=2|} in foo at ~/src/rb/target.rb:4 #7 [C] Range#each at ~/src/rb/target.rb:3 #8 [C] Enumerable#map at ~/src/rb/target.rb:3 #9 Object#foo(a=3) at ~/src/rb/target.rb:3 #10 <main> at ~/src/rb/target.rb:20 ```
やったこと
test-unit
instead ofminitest
やってないこと