contributor_docs/project_wrapups/urvashi_gsoc_2019.md
This project focused on improving the unit tests for different modules of p5.js. I spent my summer writing unit tests for different modules. I also worked on integrating the code coverage reports with Codecov through Travis CI.
I divided the timeline into smaller periods of a week or two to handle unit tests for each module. Following is a list of PRs submitted:
As of writing this report, the code coverage has been increased to 62.52% (along with an increase of total lines of code) from 50.41%. A summary is given below: Before summer of code:
=============================== Coverage summary ===============================
Statements : 50.41% ( 4598/9122 )
Branches : 36.51% ( 1375/3766 )
Functions : 56.49% ( 509/901 )
Lines : 50.95% ( 4541/8912 )
================================================================================
After summer of code:
=============================== Coverage summary ===============================
Statements : 62.04% ( 6579/10604 )
Branches : 49.86% ( 2252/4517 )
Functions : 66.82% ( 707/1058 )
Lines : 62.53% ( 6444/10306 )
================================================================================
You can find more detailed coverage reports for p5.js on Codecov
I have documented about how to approach writing a unit test in the developer docs for unit testing which was created by my mentor Evelyn.
I am glad to be able to spend my summer contributing to p5.js. I would like to thank my mentor Evelyn Masso, for her support throughout the summer and for making sure that I had enough opportunities to grow during the project. I would also like to thank other members of the Processing Foundation for this opportunity and their help in making this project successful.