Abstract

The descriptive naming of unit tests has always been a focal task in test maintenance. Previous work tried to use different methods to generate descriptive names for unit tests or provide suggestions to improve existing names, but they often neglected developers’ needs. Therefore, they are unlikely to be useful to provide descriptive test names for developers in real world. Based on a recent study that can identify uniqueness of JUnit tests, we propose a uniqueness-based name generation approach to generate descriptive test names that meet developers’ needs. Comparing with several alternative approaches, the generated name from our approach are preferred by professional developers, or at least at the same level of preference as the original test names.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call