2019独角兽企业重金招聘Python工程师标准>>>

错误描述:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project shiro: There are test failures.

解决方案:在pom文件中添加依赖

        <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --><dependency><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>2.16</version></dependency>

另外,项目太大了,如果只想测试这一个模块,也可以加上一个test失败不影响功能

<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><testFailureIgnore>true</testFailureIgnore></configuration></plugin></plugins>
</build>

转载于:https://my.oschina.net/zhanggongming/blog/715628

maven进行junit测试时报错(二)相关推荐

  1. Junit测试时报错No tests found matching

    Junit测试时报错No tests found matching 错误提示: 错误原因及解决方法: 其它原因: 错误提示: java.lang.Exception: No tests found m ...

  2. maven项目进行单元测试时报错:Method initializationError not found;Openning the test class

    maven项目进行单元测试时报错:Method initializationError  not found;Openning the test class 相信很多第一次使用单元测试的小伙伴都会遇到 ...

  3. jmeter http并发测试时报错

    jmeter http并发测试时报错 错误信息如下:jmeter Response code: Non HTTP response code: java.net.URISyntaxException ...

  4. Maven运行JUnit测试(http://www.360doc.com/content/13/0927/15/7304817_317455642.shtml)

    Maven单元测试 分类: maven  2012-05-09 15:17  1986人阅读  评论(1)  收藏  举报 maven 测试 junit 单元测试 java random 目录(?)[ ...

  5. Maven依赖junit @Test报错

    <dependency><groupId>junit</groupId><artifactId>junit</artifactId>< ...

  6. Maven依赖junit @Test报错解决

    现象: 解决方案:测试文件夹标记使用错啦,test 表示junit的jar包只能在标记为 Test Sources Root 的文件夹下被调用,调整一下就OK了,如下图:

  7. java.lang.NoClassDefFoundError: javax/transaction/Synchronization (jUnit测试报错)

    测试hibernate 报错原因项目缺少包 在 hibernate 解压目录下找到 jta.jar 文件   往项目中添加该 jar 包,即可解决 添加方法:[右击项目]-->[构建路径]... ...

  8. spring使用Test测试时报错:Singleton bean creation not allowed while singletons of this factory are in destru

    一.问题描述 利用Test测试任务时时,启动服务抛出异常:Singleton bean creation not allowed while the singletons of this factor ...

  9. Junit测试报错:java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing

    这是因为用了 junit 1.11及以上版本导致的,两种解决办法,参考: https://blog.csdn.net/u011954243/article/details/77962329 https ...

最新文章

  1. 【端口号和服务漫谈】
  2. 夏夏的php开发笔记开写啦
  3. iOS 仿通讯录索引
  4. 雷观(八):等我有钱了再付费,是一种很扯淡很没有远见的想法
  5. 使用ANTLR在5分钟内用Java解析任何语言:例如Python
  6. Boost - 序列化 (Serialization)
  7. Word 2003中为什么修改一个段落的文章结果整篇文档的格式都变?
  8. [TED] Kinect控制的四翼直升机
  9. Windows Server 2008 R2 域控DOS命令
  10. 微信宣布将推出自有输入法后,搜狗快马加鞭赶来泼冷水......
  11. Cadence工具系列介绍
  12. word三线表标题两条线之间如何出现空白间隔(论文必备)
  13. AutoCAD文档01——安装教程
  14. PDF如何旋转其中一页?
  15. 利用Max ,Break,AO贴图
  16. android dy 完结篇(0x3)
  17. 《良乔说软件》第一回 问君情深深几许?我的眼里只有你
  18. 【ST开发板评测】Nucleo-F411RE开箱报告
  19. Eclipse显示空白符号的具体设置
  20. html5制作颜色的诗句,写颜色的诗句

热门文章

  1. Spring Aware容器感知技术
  2. java之 ------ 可变參数和卫条件
  3. 重定向、管道和用户管理练习题
  4. 浅谈android的selector,背景选择器
  5. Jquery 将后台返回的字符串转换成Json格式的数据
  6. RHCE课程-系统管理部分|6、fdisk分区及格式化
  7. Tungsten Fabric SDN — VNC API — API Client 的 Python SDK
  8. OpenStack 的单元测试
  9. 红帽虚拟化RHEV3.2创建虚拟机(图文Step by Step)
  10. Ditto剪贴板增强工具 ,方便复制粘贴多条历史记录