n-rook / thscoreboard

An open-source scoreboard for Touhou games.
Apache License 2.0
9 stars 7 forks source link

Write E2E tests #346

Open jgdhs27 opened 1 year ago

jgdhs27 commented 1 year ago

As the number of pages in ss grows, so does the amount of page behaviours that we need to test with every change. We recently had a bug in production where the game leaderboards didn't show any replays - see #340. These bugs will only get harder to catch in the future. Currently, we have no testing frameworks in place that could have caught this.

This example code in the django docs looks promising.

n-rook commented 1 year ago

Real e2e tests are quite expensive and hard to write, and they're only really necessary for ajax pages. But we should definitely have at least a few, in order to catch the most obvious problems such as #340.