-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add a helper to start debug session with the test program #75
Add a helper to start debug session with the test program #75
Conversation
3a914c3
to
2eed8df
Compare
I'm concerned that this method should be placed in |
2eed8df
to
1f37697
Compare
I don't get the concern. it's not suppose to be committed to the final test scripts, it's only used when "writing" the scripts. |
Ok, it looks fine to me. The method visibility is also good. |
1f37697
to
6c05ec6
Compare
6c05ec6
to
156f27f
Compare
We don't have to take a few step in #75 because we can use test-builder
When writing tests, sometimes we may test the script manually. But currently this could take a few steps:
target.rb
exe/rdbg -e target.rb
from the terminal.And whenever we change the script or switched to another test case, we need to go through these steps again.
So in the PR, I introduced a new helper called
_start_manual_debug_session(program)
. You can place it in any test case:And then run the test case as you usually do, it'll enter a debug session with your test script 😄
(btw, the remote debugging session is pretty neat. I love it 😍 )