The documentation shows two routes, one involving creating a file directly, and the other using the logs. We’ve never got the file creation route to work, but the logs route we have found is 100%. Our approach is:
- Create a text file with the questions you want, no need for any init or quit or reset (say as REGRESS/SCRIPTS/test1.txt)
- have a user account that you just use for regression building (we call it regressor)
- Delete the user log file found in USERS for that test user, e.g. USERS/log-regressor.txt
- Type :reset to ensure all existing user data cleared
- Use :source REGRESS/SCRIPTS/test1.txt echo to fire those questions at the bot (great in itself as a way of testing it)
- Type :regress init regressor (where regressor is the user account with log)
- That generates the regression test file in TMP/regress.txt
- Copy that file and rename (eg to REGRESS/TESTS/test1_r.txt)
- From any account type :regress REGRESS/TESTS/test1_r.txt to actually run the test
If all fine says just OK! Otherwise shows where issues are and offers opportunity to update. We almost always get it reporting tag changes, and even some substantial changes are actually just trivial, but its still a cracking way to test the bot and deals with some quite complex coding.
Hope this helps (we’re on CS8.2 at the moment )
David