pythonarcade / arcade

Easy to use Python library for creating 2D arcade games.
http://arcade.academy
Other
1.65k stars 313 forks source link

Tests: Ensure all core features have complete unit tests #2128

Open einarf opened 1 week ago

einarf commented 1 week ago

Seeing that we recently discovered a nasty bug in SpriteList.swap it's probably a good idea to do an additional pass on unit tests. This feature never actually had a unit test. I suspect both Sprite and SpriteList could need some checking. Possibly additional modules/classes should also be looked into. We can't test everything but testing the "inner core" well is at least mandatory.

The initial work is to map out what features have insufficient tests.

benjamin-kirkbride commented 1 week ago

Related: https://github.com/pythonarcade/arcade/issues/2130

einarf commented 6 days ago

I did a lot of sprite unit test cleanup when looking at https://github.com/pythonarcade/arcade/issues/2122