Developer Test Cases/Unit Tests #1678
SuperFromND
started this conversation in
Engine development
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
This is something that's been brought up a couple times now on the Discord, so I'm gonna throw it on here: Ikemen currently lacks any proper unit tests, and it'd be pretty beneficial to have them around since beta-testers can only find so much in terms of regressions.
For the laymen reading: unit tests are a set of internal tests that make sure a given feature or function works as intended and doesn't break when given unusual inputs. These are usually ran automatically whenever changes are made to the specific feature or function, or triggered manually by a developer.
Here's a basic example of a unit test in JavaScript, to show what they look like:
We do kinda already do unit tests in the form of asking for test characters/stages when people report engine bugs, but it would be more beneficial to have dedicated unit tests so we don't have to juggle around a bunch of test characters every time we change something, not to mention it'd be more efficient.
Beta Was this translation helpful? Give feedback.
All reactions