为了账号安全,请及时绑定邮箱和手机立即绑定

test的时候,提示没有测试类被运行,哪位大神帮忙看一下!谢谢

D:\Program Files (x86)\maven\code\maven01>mvn test

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building maven01-model 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ maven01-model ---

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory D:\Program Files (x86)\maven\code\maven01\src\main\resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ maven01-model ---

[INFO] Nothing to compile - all classes are up to date

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ maven01-model ---

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory D:\Program Files (x86)\maven\code\maven01\src\test\resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ maven01-model ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ maven01-model ---

[INFO] No tests to run.

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.901 s

[INFO] Finished at: 2017-03-19T10:55:20+08:00

[INFO] Final Memory: 10M/114M

[INFO] ------------------------------------------------------------------------

http://img1.sycdn.imooc.com//58cdf8f70001942013660736.jpg

http://img1.sycdn.imooc.com//58cdf93f0001b3c111000728.jpg

http://img1.sycdn.imooc.com//58cdf93f0001045311000728.jpg

http://img1.sycdn.imooc.com//58cdf9400001982111000728.jpg


正在回答

4 回答

我也是这个问题,但文件夹名称什么的都没有写错,还是出现这个问题

1 回复 有任何疑惑可以回复我~
#1

qq_偽尐寳_0

请问,你最后解决了没
2017-12-03 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//58e27f280001dab505000331.jpg

画红圈的地方.

0 回复 有任何疑惑可以回复我~

顶楼上的, 楼主把文件夹的名字改下试试!

0 回复 有任何疑惑可以回复我~

楼主,你测试类的文件名写错了,是test不是text,编译的时候找不到test可不就报错么

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

test的时候,提示没有测试类被运行,哪位大神帮忙看一下!谢谢

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信