作者: Diomidis Spinellis , Ioannis Batas , Efstathia Chioteli
DOI:
关键词: Source code 、 Code (cryptography) 、 Context (language use) 、 Computer science 、 Code coverage 、 Unit testing 、 Test code 、 Crash 、 Incident report 、 Software development 、 Reliability engineering 、 Process (computing)
摘要: Context: Software development projects increasingly adopt unit testing as a way to identify and correct program faults early in the construction process. Code that is tested should therefore have fewer failures associated with it. Objective: Compare number of field arising code against those has not been tested. Method: We retrieved 2,083,979 crash incident reports Eclipse integrated environment project, processed them obtain set 126,026 unique failure stack traces specific popular release. then run JaCoCo test coverage analysis on same release, obtaining results line, instruction, branch-level 216,392 methods. also extracted from source classes are linked corresponding class so limit 1,267 actual tests. Finally, we correlated tests at level 9,523 failing Results: Unit-tested does appear be failures. Conclusion: Unit its own may sufficient method for preventing