Unit Testing State Machines? #3636
-
I'm not seeing anything in the documentation or generated code regarding unit test helper functions for internal F' state machines. Is there some official documentation available that I'm missing? Are there helpers for testing state machines? It looks like I could simply test the state machine functions the same as any other member function. Is this the standard approach for state machine unit tests? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I made an issue to track this in fpp: nasa/fpp#687 I think there should probably be some SM UT helpers. Maybe comment on the issue to push it up the priority list? |
Beta Was this translation helpful? Give feedback.
-
The current approach is illustrated here: https://github.com/nasa/fprime/tree/devel/FppTest/state_machine/internal_instance |
Beta Was this translation helpful? Give feedback.
-
Nice. I'll mark this answered because it's in work. Thanks! |
Beta Was this translation helpful? Give feedback.
I made an issue to track this in fpp: nasa/fpp#687
I think there should probably be some SM UT helpers. Maybe comment on the issue to push it up the priority list?