Test a single or series of Python CLI programs all at once!
Ever needed to test a series of command line scripts with flexible YAML-based arguments? Me neither -- until I did!
Provide a list of Python CLI invocations along with their associated command line arguments in a teleplay.yaml
file, and go to it!
The following example tests a module known as PaperPC using
a program that allows for simple addition (main.ppc
). The YAML represents the command line for this
module: paperpc main.ppc --inputs [2,3]
.
modules:
paperpc:
args:
- main.ppc
- --inputs [2,3]
outcome: 5