`
fanrey
  • 浏览: 251837 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

在pom文件中test case类间的依赖如何配置

 
阅读更多
如果app-bs中的test case类需要用到exa-client中test case的类:
1. 把exa-client的test case打包放到repository目录中.
在exa-client的pom文件中增加下面配置:
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

2. 在app-bs的pom文件中增加对exa-client test case依赖.

    <dependency> <!-- reuse src/test/java code from exa-client -->
      <groupId>exa</groupId>
      <artifactId>exa-client</artifactId>
      <version>${exa.platform.version}</version>
      <scope>test</scope>
      <classifier>tests</classifier>     <!-- for example, the build test jar is named "exa-client-2.4.0-SNAPSHOT-tests.jar"-->
    </dependency>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics