Command-line programs sometimes ask the user for input interactively. This is a fun exercise to get the hang of that. You will also practice discovering use cases and turning them into tests.
Give people access to the Dungeon Escape Refactoring Kata running on a suitable machine. Note - the code is written in C but you don’t need to understand C to do this exercise. Get them to begin by running the program in a terminal as a user would, and play the game. Encourage them to try to both win by escaping and lose by being killed.
Show them how to create a ‘smoke’ test first, where there is no input. Then show them how to create another test that just quits as the first thing it does.
Get them to re-create the two tests you showed in the demo, and go on to create tests for further scenarios. Encourage them to create tests for different scenarios like escaping, getting killed and just wandering around for a long time.
How could you use this?. Do you have any command-line programs that take user input which you’d like to test?