Skip to content

Missing tests, automation and linting #2

@domna

Description

@domna

While reviewing I was not able to spot any automated tests for the software. I think it would be good to have at least some basic tests to ensure that the gui boots up under various conditions. Ideally, the tests would be setup for all supported python versions. A good way to easily run tests for multiple versions is github actions.

I think also automated software linting is a good way to ensure software quality. I like to use ruff, which a lot of people use nowadays. But there are also other tools like pylint. Additionally, mypy is a good option for typing. ruff also offers auto-formatting, which is also helpful to ensure a consistent style (and takes away any mental drain from formatting decisions :)). I don't know if you use any of these in your local development process but I think it's also helpful to enforce them via some automated build tools, i.e., github actions.

If you need some help setting these up I can give you some working examples for qt gui testing and ci/cd integration.

I think for the review you may decide the level of your integration. I very much recommend using automation trough ci/cd. However, since I understand this has some some kind of learning curve I would also be satisfied with some basic tests with, e.g., pytest, would be present for the software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions