本次实验是Junit,hamcrest,eclemma单元测试的基础应用,从安装开始。这里选择的语言是java,IDE为Eclipse(MARS.2) 1)安装junit, hamcrest 和 eclemma 1.1 安装juint,hamcrest 这两个的安装我使用了同一种方法,即导入jar包 ...
分类:
编程语言 时间:
2017-03-13 00:07:47
阅读次数:
279
第一步 安装junit, hamcrest 和 eclemma 安装juint,hamcrest都使用了导入jar包的方法,在“项目”->“属性”当中选择java构建路径,导入jar包,这里我导入的是junit(4.12)和hamcrest-all-1.3。导入成功后就可以生成测试实例和进行测试。 ...
分类:
其他好文 时间:
2017-03-12 23:57:38
阅读次数:
323
JUnit以及hamcrest-core-1.3 安装步骤 首先,新建一个java项目,名字叫triangle,然后右键,选择Properties,点击Java Build Path, 选择Libraries选项,点击右边的 Add library 选项,选择JUnit4, 于是JUnit软件包就被 ...
分类:
其他好文 时间:
2017-03-12 23:38:53
阅读次数:
218
安装JUnit,Hamcrest和Eclemma, 然后利用JUnit进行简单的测试项目:判断三角形的类型。 ...
分类:
其他好文 时间:
2017-03-12 23:04:05
阅读次数:
211
Software Testing, Lab 1 1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 1.在github上下载两个jar包junit-4.12.jar和hamcrest-all-1.3.jar地址为https://github.com/ ...
分类:
其他好文 时间:
2017-03-12 22:57:57
阅读次数:
242
Junit,hamcrest,eclemma单元测试基础(java) 1)安装junit, hamcrest 和 eclemma 1.1 安装juint,hamcrest 这两个的安装我使用了同一种方法,即导入jar包,在“项目”->“属性”当中选择java构建路径,导入外部提前下好的jar包,这里 ...
分类:
其他好文 时间:
2017-03-12 21:44:10
阅读次数:
246
任务一,Install Junit(4.12), Hamcrest(1.3) with Eclipse 首先在网上下载Junit和Hamcrest的jar文件,Right click on the project root directory - > build path - > configure ...
分类:
其他好文 时间:
2017-03-12 21:30:34
阅读次数:
153
1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 选中新建的项目,右键->Propertise->Java Build Path->Add External JARs 然后选中之前下好的junit-4.12.jar与hamcrest-core-1. ...
分类:
其他好文 时间:
2017-03-12 19:49:59
阅读次数:
349
一、测试环境 1.下载junit-4.12.jar和hamcrest-core-1.3.jar并直接在工程中导入。 2.下载eclemma,通过 help->Install new software ->添加站点 -> local,安装并重启即可, 二、测试程序 1.工程结构 2.工程代码 Tria ...
分类:
其他好文 时间:
2017-03-12 16:25:15
阅读次数:
165
a.打开eclipse,在工作区,右键JRE Systerm Library ->build path ->configure build path ->在Library 中选择 Junit -> ok .完成后成功添加 Junit. 部分截图如下 b.下载Junit(4.12), Hamcrest ...
分类:
其他好文 时间:
2017-03-12 13:37:50
阅读次数:
158