Unittests custom actions

Hi everyone,

I am curios, is there a proper way for writing unittests for custom actions?

  • I am aware of standard unittests
  • I do not have global variables

Lets say, I am particularly interested how to unittest some of the rasa functions, for instance dispatcher.utter_message

Is it possible? Does it make sense?

Thanks in advance!

hi @almois ! Have you had a look at the tests in the Rasa codebase? Might be some good inspiration there, rasa/tests at master · RasaHQ/rasa · GitHub

For custom action debugging, we have an open issue to make that easier making it easier to debug custom action code · Issue #4212 · RasaHQ/rasa · GitHub