Re: Integration Tests Not Running

2015-01-01 Thread Ole Ersoy

Hello,

Me again - Just ignore this post.  Just realized that run the integration tests 
I can't just do:

mvn clean test

But must do

mvn clean verify

Cheers,
- Ole

On 01/01/2015 05:50 PM, Ole Ersoy wrote:

Hi,

Trying to get some integration tests running.  I've tried to minimize my pom, 
such that everything runs.  I pasted my directory structure below.  The 
maven-build-helper-plugin is used to include the integration-test src 
directory.  From what I understand the maven-failsafe-plugin now automatically 
run the HelloIT test, because it ends in IT?


├── pom.xml
├── src
│   ├── integration-test
│   │   └── java
│   │   └── integration
│   │   └── HelloIT.java
│   └── test
│   └── java
│   └── hello
│   └── HelloTest.java
└── target
├── classes
└── test-classes
├── hello
│   └── HelloTest.class
└── integration
└── HelloIT.class

This is my pom:

http://maven.apache.org/POM/4.0.0";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
4.0.0

com.example.maven
separating
1.0.0





org.codehaus.mojo
build-helper-maven-plugin
1.9.1



add-integration-test-sources
generate-test-sources

add-test-source



src/integration-test/java







maven-compiler-plugin
3.2

1.6
1.6



org.apache.maven.plugins
maven-failsafe-plugin
2.18


integration-tests

integration-test
verify


false






org.apache.maven.plugins
maven-surefire-plugin
2.18

 false







junit
junit
4.12
test





And the integration test looks like this:
package integration;

import org.junit.*;

import static org.junit.Assert.*;

public class HelloIT {

  private String hello = "Heisan!";

  @Test
  public void helloIntegrationTest() {
assertTrue(hello.equals(hello));
System.out.println("=");
System.out.println("Greetings From the Hello the Integration Test!");
System.out.println("=");
  }
}

Thoughts?

TIA,
- Ole




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Integration Tests Not Running

2015-01-01 Thread Bernd Eckenfels
Hello,

BTW: you should put src/integration-test/java in 
or you use src/test/java, so all other things follow automatically.

Gruss
Bernd


Am Thu,
01 Jan 2015 17:50:26 -0600 schrieb Ole Ersoy :

> Hi,
> 
> Trying to get some integration tests running.  I've tried to minimize
> my pom, such that everything runs.  I pasted my directory structure
> below.  The maven-build-helper-plugin is used to include the
> integration-test src directory.  From what I understand the
> maven-failsafe-plugin now automatically run the HelloIT test, because
> it ends in IT?
> 
> 
> ├── pom.xml
> ├── src
> │   ├── integration-test
> │   │   └── java
> │   │   └── integration
> │   │   └── HelloIT.java
> │   └── test
> │   └── java
> │   └── hello
> │   └── HelloTest.java
> └── target
>  ├── classes
>  └── test-classes
>  ├── hello
>  │   └── HelloTest.class
>  └── integration
>  └── HelloIT.class
> 
> This is my pom:
> 
> http://maven.apache.org/POM/4.0.0";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 4.0.0
> 
>  com.example.maven
>  separating
>  1.0.0
> 
>  
>  
> 
>  
>  org.codehaus.mojo
> build-helper-maven-plugin
>  1.9.1
>  
>   
> add-integration-test-sources
> generate-test-sources
>  
>  add-test-source
>  
>  
>  
> src/integration-test/java
>  
>  
>  
>  
>  
> 
>  
> maven-compiler-plugin
>  3.2
>  
>  1.6
>  1.6
>  
>  
>  
> org.apache.maven.plugins
> maven-failsafe-plugin
>  2.18
>  
>  
>  integration-tests
>  
> integration-test
>  verify
>  
>  
>  false
>  
>  
>  
>  
> 
>  
> org.apache.maven.plugins
> maven-surefire-plugin
>  2.18
>  
>   false
>  
>  
> 
>  
>  
>  
>  
>  junit
>  junit
>  4.12
>  test
>  
>  
> 
> 
> 
> And the integration test looks like this:
> package integration;
> 
> import org.junit.*;
> 
> import static org.junit.Assert.*;
> 
> public class HelloIT {
> 
>private String hello = "Heisan!";
> 
>@Test
>public void helloIntegrationTest() {
>  assertTrue(hello.equals(hello));
> System.out.println("=");
>  System.out.println("Greetings From the Hello the Integration
> Test!");
> System.out.println("="); }
> }
> 
> Thoughts?
> 
> TIA,
> - Ole
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Integration Tests Not Running

2015-01-01 Thread Ole Ersoy

Hi,

Trying to get some integration tests running.  I've tried to minimize my pom, 
such that everything runs.  I pasted my directory structure below.  The 
maven-build-helper-plugin is used to include the integration-test src 
directory.  From what I understand the maven-failsafe-plugin now automatically 
run the HelloIT test, because it ends in IT?


├── pom.xml
├── src
│   ├── integration-test
│   │   └── java
│   │   └── integration
│   │   └── HelloIT.java
│   └── test
│   └── java
│   └── hello
│   └── HelloTest.java
└── target
├── classes
└── test-classes
├── hello
│   └── HelloTest.class
└── integration
└── HelloIT.class

This is my pom:

http://maven.apache.org/POM/4.0.0";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
4.0.0

com.example.maven
separating
1.0.0





org.codehaus.mojo
build-helper-maven-plugin
1.9.1



add-integration-test-sources
generate-test-sources

add-test-source



src/integration-test/java







maven-compiler-plugin
3.2

1.6
1.6



org.apache.maven.plugins
maven-failsafe-plugin
2.18


integration-tests

integration-test
verify


false






org.apache.maven.plugins
maven-surefire-plugin
2.18

 false







junit
junit
4.12
test





And the integration test looks like this:
package integration;

import org.junit.*;

import static org.junit.Assert.*;

public class HelloIT {

  private String hello = "Heisan!";

  @Test
  public void helloIntegrationTest() {
assertTrue(hello.equals(hello));
System.out.println("=");
System.out.println("Greetings From the Hello the Integration Test!");
System.out.println("=");
  }
}

Thoughts?

TIA,
- Ole


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org