ABTech / zdaemon

ABTech zdaemon slack/zulip bot
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Test Harness for Plusplus #5

Open robsiemb opened 1 month ago

robsiemb commented 1 month ago

While all of zdaemon could benefit from a level of testing, plusplus parsing & responses in particular seems like they might be particularly ripe. There's a decent number of tricky corner cases that need to be handled, and thus could benefit from a test suite.

Just off the top of my head:

There's some hope, because the slack/zulip design currently gives a partial, but not complete, ability to mock the underlying APIs. For example, you can easily control input and replies, but mocking the database will need special handling. Likewise, slack entity handling isn't easy to mock right now.