Hi,

I am looking for using C/C++ Testing Framework (like CppUnit, CxxTest or
googletest) with maven 2.
Does anybody already done it ?

We are using native-maven-plugin for the compilation.
But I am quite surprise that the native build lifecycle for this plugin
consists of the following phases with corresponding goals (cf. [1]):
  test-compile    org.apache.maven.plugins:maven-compiler-plugin:testCompile
  test                org.apache.maven.plugins:maven-surefire-plugin:test

I don't think that surefire support such of Testing Framework.
It seems that we will have to bind :
   - an execution of the native-maven-plugin to the test-compile phase
   - an execution of the maven-antrun-plugin to the test phase

Rémy

[1] http://mojo.codehaus.org/maven-native/native-maven-plugin/lifecycle.html

Reply via email to