Is there a Z-code interpreter which can be started with command line options telling it to read commands from a file and print the game transcript to a file?
I’d like to set up an automated test suite which executes a number of commands and then compares the game transcript to a transcript stored in a file.
If you write your tests in the form of an Extension Project (with your test cases as the examples) then the Inform7 IDE can do this by itself.
Or for the main story file, you can make use of the skein and blessed transcripts, although they can sometimes get cluttered if you’re doing a lot of extra manual testing. You can mark them so they don’t get pruned away when you clear the rest of the skein, however.