[英]Maven not finding Eclipse Plug-in tests
所以我有一个很大的项目,我们现在正在尝试将测试集成到整个过程中(我知道)。 但是当我运行一个
mvn clean install
在测试插件上,我收到消息
All Tests Passed!
但由于我的一项测试被编写为失败,因此它显然无法运行测试。 我的插件项目的结构为:
->src/${filepath} */ My tests are here
->src/${filepath}/folderA
->src/${filepath}/folder
etc...
我有一个主pom文件,用于升级所有依赖关系(成功)。 我的结构在测试插件中只是错误的吗?
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0.0.qualifier</version>
<artifactId>com.exeeng.test</artifactId>
<packaging>eclipse-test-plugin</packaging>
<name>${name}</name>
<parent>
<version>${parent-version}</version>
<groupId>${parent-grou}</groupId>
<artifactId>parent</artifactId>
</parent>
<properties>
<tycho-version>0.19.0</tycho-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.tycho</groupId>
<artifactId>maven-osgi-packaging-plugin</artifactId>
</plugin>
</plugins>
根据Maven规范,Maven项目在src / test / java中具有测试,而在src / test / resources中具有其资源(默认)。 你有这个结构吗?
我想补充一点,Maven Junit测试是通过surefire-plugin运行的,它希望这是测试的默认目录结构。 如果需要配置, 请检查
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.