#pty #terminal #testing

ptytest

Easy testing of terminal programs by terminal screen compare

1 unstable release

0.1.0 Jan 16, 2021

#33 in #pty

MIT/Apache

33KB
788 lines

The ptytest crate provides a convenient way to test programs that write to terminals, by matching over the state of the pseudo-terminal.

  • Under examples, see a simple tested program, and a test that uses ptytest's API in order to execute and test it.
  • See run-examples.sh file, which builds the example program and runs the example test.

Dependencies

~6MB
~121K SLoC