|
| 1 | +# Improve p5.js unit tests |
| 2 | +### by Urvashi Verma ([@ihsavru](https://github.com/ihsavru)) |
| 3 | + |
| 4 | +## Overview |
| 5 | +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. As of writing this report, the code coverage has been increased to 62.37%. |
| 6 | + |
| 7 | +## Contributions during GSoC'19 |
| 8 | +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: |
| 9 | +#### Core |
| 10 | +- https://github.com/processing/p5.js/pull/3772 |
| 11 | +- https://github.com/processing/p5.js/pull/3865 |
| 12 | + |
| 13 | +#### Events |
| 14 | +- https://github.com/processing/p5.js/pull/3824 |
| 15 | +- https://github.com/processing/p5.js/pull/3814 |
| 16 | +- https://github.com/processing/p5.js/pull/3810 |
| 17 | +- https://github.com/processing/p5.js/pull/3809 |
| 18 | + |
| 19 | +#### Image |
| 20 | +- https://github.com/processing/p5.js/pull/3828 |
| 21 | +- https://github.com/processing/p5.js/pull/3829 |
| 22 | +- https://github.com/processing/p5.js/pull/3838 |
| 23 | + |
| 24 | +#### Typography |
| 25 | +- https://github.com/processing/p5.js/pull/3839 |
| 26 | +- https://github.com/processing/p5.js/pull/3844 |
| 27 | + |
| 28 | +#### Utilities |
| 29 | +- https://github.com/processing/p5.js/pull/3864 |
| 30 | + |
| 31 | +#### WebGL |
| 32 | +- https://github.com/processing/p5.js/pull/3896 |
| 33 | +- https://github.com/processing/p5.js/pull/3902 |
| 34 | + |
| 35 | +You can find the code coverage for p5.js on [Codecov](https://codecov.io/gh/processing/p5.js) |
| 36 | + |
| 37 | +### Documentation |
| 38 | +I have documented about how to approach writing a unit test in the [developer docs for unit testing](https://github.com/processing/p5.js/blob/master/developer_docs/unit_testing.md) which was created by my mentor [Evelyn](https://github.com/outofambit). |
| 39 | + |
| 40 | +## Acknowledgements |
| 41 | +I am glad to be able to spend my summer contributing to p5.js. I would like to thank my mentor [Evelyn Masso](https://github.com/outofambit), 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. |
0 commit comments