2013-10-25 64 views
1

我的香皂UI項目的pom.xml駐留在d:\ Projekte \ JacobMarshellSOAP UI集成的Maven

要執行使用maven肥皂UI項目的測試套件。當我使用下面的命令

「MVN測試」並獲得以下響應不執行

測試套件。

[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Maven 2 soapUI Sample 
[INFO] task-segment: [test] 
[INFO] ------------------------------------------------------------------------ 
[INFO] [resources:resources {execution: default-resources}] 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] Copying 1 resource 
[INFO] [compiler:compile {execution: default-compile}] 
[INFO] No sources to compile 
[INFO] [resources:testResources {execution: default-testResources}] 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] Copying 1 resource 
[INFO] [compiler:testCompile {execution: default-testCompile}] 
[INFO] No sources to compile 
[INFO] [surefire:test {execution: default-test}] 
[INFO] Surefire report directory: D:\Projekte\JacobMarshell 

------------------------------------------------------- 
T E S T S 
------------------------------------------------------- 
There are no tests to run. 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

這裏的pom.xml

<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/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>src.main.resources</groupId> 
    <artifactId>soapui-maven2-plugin</artifactId> 
    <packaging>jar</packaging> 
    <version>1.0-SNAPSHOT</version> 
    <name>Maven 2 soapUI Sample</name> 
    <url>http://maven.apache.org</url> 
    <dependencies> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>3.8.1</version> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 
    <pluginRepositories> 
     <pluginRepository> 
      <id>eviwarePluginRepository</id> 
      <url>http://www.soapui.org/repository/maven2</url> 
     </pluginRepository> 
    </pluginRepositories> 
    <build> 
     <plugins> 
      <plugin> 
       <groupId>eviware</groupId> 
       <artifactId>maven-soapui-plugin</artifactId> 
       <version>4.5.1</version> 
       <configuration> 
          <projectFile>Sample-Upload-to-Upload-Diagnose---Complete--soapui-project.xml</projectFile> 
          <junitReport>true</junitReport> 

          <outputFolder>reports</outputFolder> 
          <testSuite>diag_upload_tc</testSuite> 
         </configuration> 
       <executions> 
        <execution> 
         <phase>test</phase> 
         <goals> 
          <goal>test</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 
</project> 

無法figureout行家爲什麼不執行我的測試組件的代碼片段?

+0

您在哪個文件夾中保存'Sample-Upload-Upload-Diagnose --- Complete - soapui-project.xml'?另外,請嘗試'mvn -X test'來獲取詳細輸出。 –

+0

pom.xml和項目都駐留在同一個文件夾中 – user2810022

+0

Hi MarcelStör,該項目與pom.xml位於同一文件夾中,它不在src/../..下,Maven是否在尋找一些文件夾結構。 「結果表示沒有可運行的測試」,如果將測試添加到pom.xml或soap UI中,如何包含測試。 – user2810022

回答

0

實際的問題是存儲庫...我刪除了存儲庫中的eviware文件夾,並開始運行「mvn test」命令,其中存儲庫已下載,然後測試套件開始執行,謝謝MarcelStör因爲我希望有一天能得到答案。