JUnit参数化测试的应用研究  被引量:2

Research on the Application of JUnit Parameterized Testing

在线阅读下载全文

作  者:刘彦楠 LIU Yannan(College of Information Engineering(Software College),Henan University of Animal Husbandry and Economy,Zhengzhou Henan 450044,China)

机构地区:[1]河南牧业经济学院信息工程学院(软件学院),河南郑州450044

出  处:《信息与电脑》2021年第14期30-32,共3页Information & Computer

摘  要:单元测试是对软件的一个独立工作单元进行的测试,是软件测试的重要阶段,对于软件缺陷的早期发现和干预具有重要的意义。JUnit是Java语言的单元测试框架,能够实现自动化单元测试。本文应用JUnit对实际程序进行了简单测试和参数化测试,分析了JUnit简单测试和JUnit参数化测试各自的优缺点,为测试人员执行单元测试提供了参考。Unit testing is an independent unit of software testing, which is an important stage of software testing. JUnit is the unit testing framework of Java language, which is used to realize automatic unit testing. In this paper, we use JUnit to test the actual program, and analyze the advantages and disadvantages of JUnit simple test and JUnit parameterized test. It provides a reference for testers to execute unit testing.

关 键 词:单元测试 JUnit框架 参数化测试 

分 类 号:TP311.53[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象