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

Feature request: option to debug tests #266

Open
eltoder opened this issue Feb 13, 2023 · 0 comments
Open

Feature request: option to debug tests #266

eltoder opened this issue Feb 13, 2023 · 0 comments

Comments

@eltoder
Copy link
Contributor

eltoder commented Feb 13, 2023

While developing tests it is quite handy to put in breakpoints or extra prints. At the moment, when a test is run by green, breakpoints do not work because stdin is not connected to the terminal. I couldn't find any option to preserve stdin. This means I have to switch to running the test without green. While not the end of the world, it's inconvenient. It would be great if green had a command-line option to support test debugging. It could do the following:

  1. Leave stdin connected. Optionally complain if stdin is not a tty.
  2. Don't capture stdout.
  3. Limit the number of processes to 1.

I think that will make developing tests with green more pleasant.

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

No branches or pull requests

2 participants