Help Wanted: Unit & Functional Tests
See original GitHub issueHello Pixi Devs!
We’re looking for some PRs from folks to help increase our test-coverage or Pixi.js. Why are unit-tests helpful? Many reasons, but here are a few:
- they help us spot issues sooner (with Travis and running
npm test) - they improve the stability of code over time
- they aid in doing major refactoring efforts
Let’s be frank, our test-coverage right now is pretty poor. Until now, we hadn’t realized just how poor. We have just merged PR #3041 a code-coverage tool which analyzes the Pixi code against the unit-tests to see what was run and what wasn’t (uses istanbul).
Right now our current coverage is about 32%. You can view the latest report on the current dev branch. We really would like to see that number grow over time. So… we will try to improve our coverage by at least 10% for the next couple releases.
Basically, we need some help writing some tests. Here are some of the lower-hanging fruit that’s currently not being unit-tested. Here are some ideas, would gladly welcome PRs to unit-test these pieces:
Math
Math Shapes
Loader Middleware
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:22 (12 by maintainers)

Top Related StackOverflow Question
GREAT NEWS was have really improved our test coverage since starting this thread it has increased nearly 10%. I’m going to close this post for now and start another thread with some new unit-testing needs. Thanks for everyone’s help. Please keep adding to our tests and submitting PRs.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.