Skip to content
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

Automatically stop on failed test #886

Open
KES777 opened this issue Aug 10, 2021 · 2 comments
Open

Automatically stop on failed test #886

KES777 opened this issue Aug 10, 2021 · 2 comments

Comments

@KES777
Copy link

KES777 commented Aug 10, 2021

It would be handy to automatically call $DB::single = 1 when test fail

STOP_WHEN_FAIL=1 perl -d t/some_test.t

This brings me at problem place precisely. And allow dig problem without interruption

@exodist
Copy link
Member

exodist commented Aug 10, 2021

I think this would best be done as a plugin in Test2::Suite similar to DieOnFail or BailOnFail.

@exodist
Copy link
Member

exodist commented Apr 28, 2023

@KES777 Test-More/Test2-Suite#267 Tell me if this does what you would like. I do not usually use the debugger, so not able to verify on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants