Pytest plugin opening GUI Pytest plugin opening GUI tkinter tkinter

Pytest plugin opening GUI


Tkinter.Tk().mainloop() is a while True loop. You won't be getting out of it. There are two ways to solve your problem in my opinion:

  1. Use pytest inside Tkinter app. You can invoke pytest within the tkinter code like this.

  2. Use pytest in different thread and pipe the output of pytest to Tkinter app.