Your first test #

With the CLI installed, let’s run a very simple terminal test just to see that things are working:

bombadil terminal test --output-path my-test head -n100

It’s likely it’ll type a Ctrl+D and have head exit before a hundred lines have been printed. As we didn’t use a custom specification with the --specification option, Bombadil used the default specification for terminal testing, which enters various Unicode input and some escape sequences. It also checks a few common properties, like that the program exits with a zero exit code and that it doesn’t print any byte sequences the terminal can’t render.

The test results are in the file my-test (any filename is accepted). Parent directories must already exist. To see what happened, show each state of the test with its screen:

bombadil trace my-test --screen

See Inspecting test results for more.