Chad Brandon schrieb:
Actually unit tests should be picked up automatically, forking won't cause
maven to find the tests any better. You may need to fork to get your tests
to run correctly, however it sounds like Maven isn't even picking them up.
I thought this too.
What are the names of the test classes you're trying to run? Also can youAhh, stupid me! 't was the name of the test class, not fitting the pattern **/*Test.java!!
attach the <build> section of your project.xml?
Many thanks!
Thomas
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wouter Zoons Sent: Saturday, February 12, 2005 4:16 AM To: 'Thomas Schapitz'; andromda-user@lists.sourceforge.net Subject: RE: [Andromda-user] Triggering execution of unit tests for AndroMDA applications?
It's hard to tell from here but you might need to set a few properties (http://maven.apache.org/reference/plugins/test/properties.html)
I would try to fork the test process and specify the working directory manually too.
I'm also interested to know how to get it to work, I will add this feature to the andromdapp:generate plugin, feel free to send me your project tree (please do a 'clean' first so I don't get all the binaries)
-- Wouter
-----Original Message----- From: [EMAIL PROTECTED] [mailto:andromda-user- [EMAIL PROTECTED] On Behalf Of Thomas Schapitz Sent: Saturday, February 12, 2005 11:55 AM To: andromda-user@lists.sourceforge.net Subject: [Andromda-user] Triggering execution of unit tests for AndroMDA applications?
Hi,
seemingly, I'm unable to trigger the execution of unit test. I'm using Milestone 3, to build an EJB Appliction, which I started with andromdapp:generate
For a start, I wrote a unit test for the ejbs, and placed it into ./core/src/test/java.
I allready fixed ./core/project.xml to hold
<unitTestSourceDirectory>src/test/java</unitTestSourceDirectory> <unitTest> <includes> <include>**/*Test.java</include> </includes> </unitTest>
so starting with maven core from '.' gets the tests compiled. Classes get placed into ./core/target/test-classes
but what ever I try,
maven core maven test maven test:test
from base directory or core, I'm not getting the testcases executed automatically.
Only
maven test:ui
is getting me somewhere, but thats not an option for automatic testing...
Since I'm new to maven (Only using it because, andromda advocates it) I'm not even knowing whether this is because of a problem in andromdapp:generate or because I fail to understand maven...
Any Ideas?
Thomas
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user