Hi, I have a package that you might want to include in the handbook. It's called with-simulated-input, and its purpose is to enable automated non-interactive testing of interactive commands. I use it extensively in the test suite for my other package, ido-completing-read+, which is heavily focused on user interaction.