I am interested in working on improving the unit tests for p5.js. (I am not quite sure if I should post this on the issue tracker or the forum?) There aren't any existing issues on GitHub which would help me get started with testing. As mentioned in the Project List, this project would start with a survey to understand which areas are in need of unit tests and which are sufficiently covered. I went through the codebase, following are the areas which are missing unit tests:
I would like others feedback on this! Am I missing something? Please let me know if I can pick up one of these files for creating unit tests, I would love to work on this!
Hi again @ihsavru! Thanks for this list. If you're interested in working on some of these outside of Google Summer of Code, I can help get you started now! If you have questions about an idea or need guidance on forming your proposal for Google Summer of Code, please post to the Processing Forum. Thanks!
@outofambit Sure, I would like to work on this. How can I get started?
@ihsavru awesome! 馃槃 Looking at the list above, I think a good place to start is modeAdjust(). Lets work towards having a PR with tests for that function.
Some background on our unit testing framework:
npm testassert to write individual statements about how code should behaveTake a look at that, and let me what questions you have :)
@outofambit how do i run an individual test?
you can easily do it by appending .only on suite or test.
you can easily do it by appending .only on suite or test.
yeah i think that's the easiest approach! we just have to be careful not to commit the .only.
for example:
suite.only('color/p5.ColorConversion', function() {
@outofambit What do I work on next? :)
Hi @outofambit, I created my first draft proposal for this project, I looking forward to some feedback from you. It would be great if you could review it 馃槄
@ihsavru how about conversion.js or add some more tests for the keyboard events? (@Ajayneethikannan just added the first one last week!)
Hey @ihsavru and @outofambit can we get this pull request for the iPad external keyboard sorted out before we add a keyboard unit test?
https://github.com/processing/p5.js/pull/3286
This is the second oldest pull request on p5 now.