source code

PG+ Test is a standalone, external, end-to-end testing harness and test development framework for Playground+ talkers.

PG+ Test is useful out-of-the-box as well as extensible; it . . .

  • Comes with lots of ready-to-run examples
  • Makes it easy to add your own custom tests
  • Lets you customize and add comparison stub data by copying and pasting from your talker's output

PG+ Test is private; it . . .

  • Installs and runs as a standalone application entirely within your local *nix/Mac system
  • Acts as a user on your talker's remote or local test instance to exercise talker functionality
  • Does not communicate with any third-party system
  • Does not interact directly with talker source code

Synopsis

$ ruby pgplus-test.rb
------------------------------------------- [ 2023-03-25 21:17:40.251332 -0700 ]

-=> Testing section: basic commands <=-
    ✅ Login successful for test_user
    ✅ who: top_line_matches
    ✅ who: first_row_of_table_matches
    ✅ spodlist: bottom_line_contains
    ✅ Logout successful for test_user

-=> Testing section: other tests <=-
    ✅ Login successful for test_user
    ❌ example_test: custom failed test output
    ✅ example_test: custom passed test output
    ✅ Logout successful for test_user

-=> Testing section: admin tests <=-
    ✅ Login successful for admin_test_user
    ✅ backup_operation: process complete
    ✅ Logout successful for admin_test_user

-------------- [  18 pass   0 fail   0 err   ] - [ completed in 0009.0266 secs ]