Exploiting Common Object Usage in Test Case Generation
Gordon Fraser, Andreas Zeller · IEEE International Conference on Software Testing, Verification and Validation (ICST) · 2011
Generated test cases are good at systematically exploring paths and conditions in software. However, generated test cases often do not make sense. We adapt test case generation to follow patterns of common object usage, as mined from code examples. Our experiments show that generated tests thus (a) reuse familiar usage patterns, making them easier to understand and (b) focus on common usage, thus respecting implicit preconditions and avoiding meaningless tests.
Cited by 53 works. doi:10.1109/icst.2011.53
Authors
References
- DART
- DART
- Search‐based software test data generation: a survey
- JCrasher: an automatic robustness tester for Java
- Symstra: A Framework for Generating Object-Oriented Unit Tests Using Symbolic Execution
- A Markov chain model for statistical software testing
- Evolutionary testing of classes
- Randoop
- Detecting object usage anomalies
- Statistical testing of software based on a usage model