unit test and mpf monitor simultaneous

Skip to first unread message

Todd Legere

Sep 7, 2023, 8:27:59 PMSep 7
to MPF Users
I am a bit rusty with my unit testing.
On my linux host I have opened two terminal sessions one to run unit test and the second mpf monitor. My monitor session is not responding listening on port 5051.

One terminal session 1
python3 -m unittest tests/test_simple_game.py

On terminal session 2
mpf monitor

Todd Legere

Sep 13, 2023, 2:55:48 PMSep 13
to MPF Users
anyone care to venture why unit tests not giving any activity for monitor session ?

No lamps showing no switches showing but unit test runs completely.

Todd Legere

Sep 21, 2023, 6:16:16 AMSep 21
to MPF Users
Hoping some kind sole will chime in something to help...

I watched the youtube video that talks to doing unittesting and saw the launch of a unittest with mpf monitor but it looks like the unittest was launched from python ide.

Again what I am trying to do is launch my unittests that include showing the media controller outputs like lightshows and neosegment displays.
This leads me to beleive I need to add addition include files at the top of my testing script.

I reviewed the following web page below that show a map but I have not been able to successfully launch my python -m unittest tests/showmedia.py and have it output anything while mpf monitor is running.

Reply all
Reply to author
0 new messages