run_tests
Replay Markdown-based 5250 screen regression tests to verify a program's display behavior after a code change. Reports which tests pass.
Instructions
Replay screen regression tests against a program and report what passed. A test is a Markdown file with 5250-do blocks (the same action lines screen_do takes) and 5250-expect blocks (checks against the screen that came back), so it reads as a specification. Use this after compiling a change to see whether the display behaviour it was supposed to keep still holds, or before making one to write the expected screens first and watch them fail. Opens its own session and closes it, unless you pass session to reuse one that is already open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | a test file, or a directory of *.md tests to run in name order (default: "screen-tests") | |
| filter | No | only run tests whose file name contains this, ignoring case | |
| server | No | which IBM i to use, named by a .env.<name> file. Omit for the default .env server | |
| session | No | reuse this already open session instead of opening and closing one. The session is left where the last test finished |