Unit tests as API usage examples
dc.contributor.author | Nasehi, S.M. | |
dc.contributor.author | Maurer, F. | |
dc.date.accessioned | 2015-07-29T19:39:53Z | |
dc.date.available | 2015-07-29T19:39:53Z | |
dc.date.issued | 2010 | |
dc.description.abstract | This study aims to find out if API unit tests can provide good usage examples, and if so, what prevents developers from finding and using those examples. The results of an experiment we performed with two groups of developers showed that unit tests can be very helpful, especially when the task is complicated and involves multiple classes and methods. Well-written tests proved to be a good source of examples, but finding the relevant examples using the standard tools might be very difficult. We propose to supplement the standard API documentation with relevant examples taken from the unit tests. To further improve the learnability of the API, presentation of the documentation and examples has to be tailored in a way that separates or hides advanced usage scenarios from the commonly used ones. | en_US |
dc.description.refereed | Yes | en_US |
dc.identifier.doi | 10.1109/ICSM.2010.5609553 | |
dc.identifier.uri | http://hdl.handle.net/1880/50715 | |
dc.identifier.uri | https://doi.org/10.11575/PRISM/46169 | |
dc.publisher | IEEE | en_US |
dc.publisher.url | http://dx.doi.org/10.1109/ICSM.2010.5609553 | en_US |
dc.title | Unit tests as API usage examples | en_US |
dc.type | unknown |
Files
License bundle
1 - 1 of 1
No Thumbnail Available
- Name:
- license.txt
- Size:
- 1.84 KB
- Format:
- Item-specific license agreed upon to submission
- Description: