期刊文献+

JUCC:一种基于JUnit框架展示代码覆盖的交互式测试工具 被引量:1

JUCC: an Interactive JUnit-based Testing Tool with Code Coverage
下载PDF
导出
摘要 当前测试驱动的开发模式已成为软件开发的主要模式之一,而JUnit是测试开发领域中常用的一种测试框架.基于JUnit的各种测试技术和方法经常出现在各种软件测试研究与实践中.本文基于JUnit框架,提出一种添加代码覆盖展示的新型交互式测试工具JUCC.JUCC在JUnit测试结束后根据测试过程中记录的信息,图形化地显示测试代码的覆盖率,这样,测试人员可根据代码覆盖情况针对没有被覆盖的代码再次进行测试用例的编写,迭代地进行测试,直到达到满意的测试效果. The Test-driven development ( TDD ) concept has deeply rooted in the software development life cycle. And in TDD, JUnit is one of the most famous and successful testing tools in software testing research and practice. Based on JUnit, this paper proposes a framework, JUCC, which facilitates interactive unit testing by displaying the test code coverage. JUCC can effectively collect and graphically show the test coverage information during running of the JUnit. Thus, the testers can interactively generate new test cases based on the test running information to execute the uncovered code. And this process is iteratively proceeded until it achieves some testing criteria fit to practical needs.
出处 《小型微型计算机系统》 CSCD 北大核心 2014年第4期807-810,共4页 Journal of Chinese Computer Systems
基金 江苏省教育厅自然科学基金项目(13KJB520027)资助 国家自然科学基金项目(61070133 61202006)资助 江苏省自然科学资金项目(BK2010134)资助
关键词 JUNIT 单元测试 代码覆盖 图形化显示 JUnit unit testing code coverage graphic user interface
  • 相关文献

参考文献1

二级参考文献19

  • 1Zhu Hong,Hall P A V,May J H R.Software unit test coverage and adequacy[J].ACM Computer Survey,1997,29(4):366-427.
  • 2Zhang Jian,Wang Xiaoxu.A constraint solver and its application to path feasibility analysis[J].Int Journal of Software Engineering and Knowledge Engineering,2001,11(2):139-156.
  • 3Edvardsson J.A survey on automatic test data generation[C]//Proc of the 2nd Conf on Computer Science and Engineering in Linkping.Linkping:ECSEL,1999:21-28.
  • 4King J C.Symbolic execution and program testing[J].Communications of the ACM,1976,19(7):385-394.
  • 5Zhang Jian.Specification analysis and test data generation by solving Boolean combinations of numeric constraints[C]//Proc of the 1st Asia-Pacific Conf on Quality Software (APAQS).Piscataway,NJ:IEEE,2000:267-274.
  • 6Zhang Jian.Symbolic execution of program paths involving pointer and structure variables[C]//Proc of the 4th Int Conf on Quality Software (QSIC).Piscataway,NJ:IEEE,2004:87-92.
  • 7Sable Research Group.Soot:A Java optimization framework[CP/OL].[2010-01-01].http://www.sable.mcgill.ca/soot/tutorial/index.html.
  • 8Beizer B.Software testing techniques[M].New York:John Wiley & Sons,1989.
  • 9Wang H S,Hsu S R,Lin J C.A generalized optimal path-selection model for structural program testing[J].The Journal of Systems and Software,1989,10(1):55-63.
  • 10McCabe T J.A complexity measure[J].IEEE Trans on Software Engineering,1976,SE-2(4):308-320.

共引文献12

同被引文献12

引证文献1

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部