Skip to content

daijinru/algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

在 IDEA 跑测试

分两步,分别是 junit.jar 包下载和导入到 IDEA,及 Junit Generator 插件的使用。

Download JAR files with all dependencies

从上述地址下载 junit-4.1.2。将其解压到 .m2/<自定义文件夹名称>。不建议 repository。

在 IDEA Settings/Project Settings/Modules/Dependencies 导入它。

安装 Junit Generator 插件,并修改 output path(让 test 和 src 同级)。

回到 src 某路径,使用快捷键 Alt + Insert 选中 Junit4 在 Test 文件路径下生成对应的 Test Class。

记得导入 junit-benchmark 和 h2。

示例图片

使用的 jar 包

Title Version Desc
junit-benchmark 0.7.2 跑分
h2 1.4.200 内存数据库
junit 4.12 测试工具

参考

Junit 基准测试

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published