How do you test Custom Actions before using them with a bot?

Is there an easy and clever way to test a custom action in an unit_test like approach?

I am not sure how to initalize or persist a dispatcher, tracker or domain instance after training an Agent.

I would appreciate hints and maybe clarification on the basic set-up of rasa-core:)

Cheers, Henry

1 Like

I would just test it as you would any normal class. You can take a look at the train/run script on how to initialise these things etc

1 Like

Hi @akelad.

Can you give a link to the script that you have mentioned here?

I also want to ensure my action classes don’t break due to some intermittent changes hence I want to write unit tests for them.