Open sigmaSd opened 1 year ago
Thanks. This is a good flag -- what's happened is that this causes the child to raise a SIGTTOU signal on itself, and the default behavior of that signal is to put the process in a stopped state (similar to ctrl-Z). Nextest doesn't currently know how to deal with tests in this kind of stopped state.
I wish there were a way to change the signal handler for SIGTTOU/SIGTTIN to terminate the process, but I don't believe there is.
Probably too intrusive for a test runner, to be honest. I think the out-of-process mechanics used by nextest (termination, timeouts) should generally be the extent of what we do.
The pty would definitely be interesting as well.
Recently tried using the portable_pty crate (commit here) to test a TUI application; nextest seems to work with it.
Yes, if we allow using a pty for each test, then I was eyeing the portable_pty crate to make that happen.
code:
cargo add crossterm