Qt and Python; code easily using the Pytest framework

December 1, 2019

Both PySide and PyQt allow rapid prototyping and development of Qt applications using the Python programming language. However, the Qt Test framework is focused on C++, and only a subset of its functionality is available in Python. Together with the “unittest” module in the Python standard library (which exposes a heavyweight, xUnit-like API), this can make tests unnecessarily cumbersome to write. The pytest framework coupled with the pytest-qt plugin allows writing tests for Qt/Python code in a much more straightforward and fun way. It exposes the QTestLib API, but also adds various high-level functionality with an API which is more suitable for Python code. This talk will give the audience a short introduction to pytest and explain how to test Python/Qt code using the pytest-qt plugin. It will also take a quick look at other useful pytest plugins which can be combined with pytest-qt. 

TALK: Testing PySide PyQt Code Easily Using the Pytest Framework

SPEAKER: Florian Bruhin

COMPANY: Bruhin Software

TRACK: Python

Talk recorded at the Qt World Summit 2019 event in Berlin. #QtWS19 November 2019 - BCC  

Previous Video
Using containers for cross platform application development with Qt
Using containers for cross platform application development with Qt

Put your Application in a Container and Ship it to Many Embedded Devices -- Valter Minute & Stefan Eichenbe...

Next Video
The secret to enhancing Qt for Python applications
The secret to enhancing Qt for Python applications

Utilizing Shiboken to Enhance your Qt for Python Application -- Sharon Woods -- The Qt Company

Convince your boss: 10 ways to make them say "Yes!"

Get Presentation