Forum Discussion

javixeneize's avatar
javixeneize
Contributor
8 years ago

maven plugin compiling but not running tests

Hi

 

I finally solved the issue with my maven integration yesterday. In ArtifactID you need to put your project name...

 

I have a pom.xml like this. I just want to run the suite Authenticate from REST-Project-1-soapui-project.xml project

 

<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>com.smartbear.samples</groupId>
<artifactId>REST-Project-1</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven 2 SoapUI Sample</name>
<url>http://maven.apache.org</url>
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro-maven-plugin</artifactId>
<version>5.2.1</version>
<executions>
<execution>
<phase>test</phase>
<configuration>
<projectFile>REST-Project-1-soapui-project.xml</projectFile>
<testSuite>Authenticate</testSuite>
<goals>
<goal>test</goal>
</goals>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

 

 

It builds everything correctly but doesnt execute that test

 

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ REST-Project-1 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ REST-Project-1 ---
[INFO] No tests to run.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

 

Any help to point out what am i doing wrong?

Thanks

No RepliesBe the first to reply