Finitomata :: FSM boilerplate based on callbacks

To support my own rant about making our libraries test-friendly (based on finitomata example), I implemented the test scaffold generation, based on the FSM shape, collected during the compile time.

 mix finitomata.generate.test --module MyApp.FSM

The above would generate a scaffold for checking all the possible paths in the FSM declaration. Enjoy.

https://hexdocs.pm/finitomata/Finitomata.ExUnit.html#module-test-scaffold-generation

1 Like