Re: Integration Tests Not Running

2015-01-01 Thread Bernd Eckenfels
Hello,

BTW: you should put src/integration-test/java in testSourceDirectory
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 ole.er...@gmail.com:

 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:
 
 project xmlns=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;
 modelVersion4.0.0/modelVersion
 
  groupIdcom.example.maven/groupId
  artifactIdseparating/artifactId
  version1.0.0/version
 
  build
  plugins
 
  plugin
  groupIdorg.codehaus.mojo/groupId
 artifactIdbuild-helper-maven-plugin/artifactId
  version1.9.1/version
  executions
  !-- Add the integration-test source directory
 -- execution
 idadd-integration-test-sources/id
 phasegenerate-test-sources/phase
  goals
  goaladd-test-source/goal
  /goals
  configuration
  sources
 sourcesrc/integration-test/java/source
  /sources
  /configuration
  /execution
  /executions
  /plugin
 
  plugin
 artifactIdmaven-compiler-plugin/artifactId
  version3.2/version
  configuration
  source1.6/source
  target1.6/target
  /configuration
  /plugin
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-failsafe-plugin/artifactId
  version2.18/version
  executions
  execution
  idintegration-tests/id
  goals
 goalintegration-test/goal
  goalverify/goal
  /goals
  configuration
  skipTestsfalse/skipTests
  /configuration
  /execution
  /executions
  /plugin
 
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
  version2.18/version
  configuration
   skipTestsfalse/skipTests
  /configuration
  /plugin
 
  /plugins
  /build
  dependencies
  dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version4.12/version
  scopetest/scope
  /dependency
  /dependencies
 /project
 
 
 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



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:

project xmlns=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;
modelVersion4.0.0/modelVersion

groupIdcom.example.maven/groupId
artifactIdseparating/artifactId
version1.0.0/version

build
plugins

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
version1.9.1/version
executions
!-- Add the integration-test source directory --
execution
idadd-integration-test-sources/id
phasegenerate-test-sources/phase
goals
goaladd-test-source/goal
/goals
configuration
sources
sourcesrc/integration-test/java/source
/sources
/configuration
/execution
/executions
/plugin

plugin
artifactIdmaven-compiler-plugin/artifactId
version3.2/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-failsafe-plugin/artifactId
version2.18/version
executions
execution
idintegration-tests/id
goals
goalintegration-test/goal
goalverify/goal
/goals
configuration
skipTestsfalse/skipTests
/configuration
/execution
/executions
/plugin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.18/version
configuration
 skipTestsfalse/skipTests
/configuration
/plugin

/plugins
/build
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.12/version
scopetest/scope
/dependency
/dependencies
/project


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