Skip to content

Conversation

@MihaMi27
Copy link
Contributor

Added some basic tests for GUI as per issue #8.

To implement these tests, I needed to:

  • fix the workflow file to allow GUI testing, see pytest-qt documentation,
  • set sport-activities-features max version, as the current version 0.5.0 is not backwards compatible,
  • add a new class CustomTCPServer and modify the CustomHandler class to toggle logging (the automated tests do not need HTTP access logs, it ruins the pytest output),
  • add a new variable for specifying the port on which the HTTP server runs (each test generates its own server port to avoid "address already in use" issues,
  • add default values to keep compatibility,
  • add some basic STATIC tests (does not test simulated or real-time data, only data that is read from files)

@firefly-cpp firefly-cpp merged commit ef22138 into firefly-cpp:main Dec 20, 2024
1 check passed
@MihaMi27 MihaMi27 deleted the Add-Tests branch December 26, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants