jflamy / owlcms4

Olympic Weightlifting Competition Management System
https://owlcms.github.io/owlcms4/#/index
Other
66 stars 21 forks source link

Automated tests for avoiding regressions #1119

Open renemadsen opened 4 days ago

renemadsen commented 4 days ago

Is your feature request related to a problem? Please describe. Doing the last many years I've been using owlcms. Doing that time there have been versions working better than others in terms of performance/loosing connection to db and the softwares ability to gracefully recover from said problems without restarting the application. Some times we encounter problemes doing a competition, that could have been avoided if there were some automated tests to simulate the entire flow of a competition.

Describe the solution you'd like Start the process of creating any sort of e2e tests, that could be in playwright. Exact step by step description of how to set up the current playwright tests and run them. Tests that would simulate:

Describe alternatives you've considered Manual testing, which is a dead end and doomed to fail in the end.

Additional context I can assist in starting this process of setting up the github env

jflamy commented 2 days ago

Some observations:

So one option would be to set up an unattended playwright environment with the various scoreboards to be monitored, and a test database with multiple platforms. There is already some stress test code that was used to create 140 groups on 3 platforms, which could be adapted.

The simulator could also be improved

I don't believe there is much value in doing these specific tests through the interface, they are better done through the events.

jflamy commented 2 days ago

Things that could be done through the interface