[erlang-questions] what is the best way to test Erlang FSM processes?

Max Lapshin <>
Thu Aug 26 16:16:51 CEST 2010


If you have really clean state machine, it's state is always described
by initial state and command words sequence.

You may try several techniques:

1) most simple and hard to support: test each transition from any
state by each possible command word.
2) fuzzy testing. Log down initial state, log stream of random input
command words and perform some state cheks.
If failed, write you an email with sequence of command words. Well
known technique in gamedev.


More information about the erlang-questions mailing list