Maybe there is something I don't get, but I checked out
the pax-exam-tutorial, and once I built it with maven, then I wondered how
do you run the tests using a maven goal???
I have tests in the maven project, which specifies a running platform, etc.
 These tests are in the src/test/java folder of my maven project.  These
tests are also annotated with JUnit's marker. When I do mvn test, all I have
is:

-- snip -------------------

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building OPS4J Pax Exam - Tutorial
[INFO]    task-segment: [test]
[INFO]
------------------------------------------------------------------------
[INFO] artifact org.ops4j.pax.exam:maven-paxexam-plugin: checking for
updates from central
[INFO] artifact org.ops4j.pax.exam:maven-paxexam-plugin: checking for
updates from Codehaus Snapshots
[INFO] snapshot org.ops4j.pax.exam:maven-paxexam-plugin:1.0.1-SNAPSHOT:
checking for updates from central
[INFO] snapshot org.ops4j.pax.exam:maven-paxexam-plugin:1.0.1-SNAPSHOT:
checking for updates from Codehaus Snapshots
[INFO] [paxexam:generate-config {execution: generate-config}]
[INFO] Adding dependencies in scope provided
[INFO] ----PAX EXAM PLUGIN Created:
/Users/js/dev/workspaces/pax-exam/pax-exam-tutorial/target/test-classes/META-INF/maven/paxexam-config.args

-- snip -------------------

Ok Pax, I can see that you ave been working, you probably generated a config
based on my tests (list of bundles to load etc)

-- snip -------------------

[INFO] [resources:resources]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/Users/js/dev/workspaces/pax-exam/pax-exam-tutorial/src/main/resources
[INFO] snapshot org.ops4j.pax.exam:pax-exam-junit:1.0.1-SNAPSHOT: checking
for updates from central
[INFO] snapshot org.ops4j.pax.exam:pax-exam-junit:1.0.1-SNAPSHOT: checking
for updates from ops4j.snapshots
[INFO] snapshot org.ops4j.pax.exam:pax-exam-runtime:1.0.1-SNAPSHOT: checking
for updates from central
[INFO] snapshot org.ops4j.pax.exam:pax-exam-runtime:1.0.1-SNAPSHOT: checking
for updates from ops4j.snapshots
[INFO] snapshot org.ops4j.pax.exam:pax-exam-spi:1.0.1-SNAPSHOT: checking for
updates from central
[INFO] snapshot org.ops4j.pax.exam:pax-exam-spi:1.0.1-SNAPSHOT: checking for
updates from ops4j.snapshots
[INFO] snapshot
org.ops4j.pax.exam:pax-exam-container-default:1.0.1-SNAPSHOT: checking for
updates from central
[INFO] snapshot
org.ops4j.pax.exam:pax-exam-container-default:1.0.1-SNAPSHOT: checking for
updates from ops4j.snapshots
[INFO] snapshot
org.ops4j.pax.exam:pax-exam-container-rbc-client:1.0.1-SNAPSHOT: checking
for updates from central
[INFO] snapshot
org.ops4j.pax.exam:pax-exam-container-rbc-client:1.0.1-SNAPSHOT: checking
for updates from ops4j.snapshots
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/Users/js/dev/workspaces/pax-exam/pax-exam-tutorial/target/surefire-reports

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

-- snip -------------------
What?  no tests to run?  I am confused.
-- snip -------------------

Results :

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

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 51 seconds
[INFO] Finished at: Tue Jun 30 13:58:40 EDT 2009
[INFO] Final Memory: 20M/79M
[INFO]
------------------------------------------------------------------------


-- snip -------------------
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to