I have an initial set of tests. My strategy in testing was:

1. Create a "Display tokenized message to user action" that has a few tokens in the body of the message.
2. Set those tokens to really unique values.
3. Assign that action to a trigger.
4. Fire the trigger, see if we get the right text in the message.

This much works. It tests some of the basic features of token, token_actions, and the actions/trigger module.

I'd like to get a lot more test coverage, which shouldn't be too hard.

Comments

dave reid’s picture

Status: Active » Fixed

Thanks Greg for the initial tests! I've started adding more specific tests for the actual tokens themselves and unit testing token functions in both the D7 and D6 branches. As we've got this rolling, I'm marking as fixed. We can always add tests when we fix bugs or add features.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.