On Nov 21, 2006, at 3:04 PM, Prasad Kashyap wrote:

The ejbcontainer-testsuite is now in testsuite. However, it is
commented out in the testsuite/pom.xml until OpenEJB2 builds against
geronimo 2.0-SNAPSHOT and the itest jars get deployed. You can play
with this by building openejb2 locally.

Issues:
----------
1) The tests run against the beans in openejb-itests-core jar archive.
This jar archive contains 3 of the 4 cmp2 plans and DDs that have been
merged with the core plan and DD. Merging cmp2-prefetch plan and DD
causes the jar to fail during startup. See
https://issues.apache.org/jira/browse/OPENEJB-305#action_12451474

Maybe Gianny has an idea of what could be going on there.

2) The tests fail with the following exception -
http://rifers.org/paste/show/2409

This looks like a problem with surefire. These test classes run fine in the released version of surefire, but looks like something broke in the snapshot version you're using. It's trying to call getName() on instances of junit.framework.Test and that interface does not have getName(). Seems they've decided to code in the assumption that all tests are subclasses of the TestCase abstract class. They need to unbreak surefire.

If you use the released version it should work.

P.S: ReuseOpenEJBTest.java is the renamed adaptation of
SomeoneBrokeSurefireAndThisIsADirtyHackForItTest.java in OpenEJB3.

FYI, you should use org.apache.geronimo as the package name.

I need someone with an OpenEJB expertise to get this fixed please.

Didn't turn out to be an OpenEJB thing after all, but happy to help!

-David

Thanx
Prasad

On 11/20/06, Prasad Kashyap <[EMAIL PROTECTED]> wrote:
The testsuite sub-project, a child module of geronimo/pom.xml, has now
been hooked up to the main Geronimo build in trunk (2.0-SNAPSHOT).
Environment property, -Denv=itests, activates that profile.

$>cd geronimo_src_home
$>mvn -Denv=itests

You can read all about it here
http://cwiki.apache.org/confluence/display/GMOxDEV/Integration +Testing

For now it contains 2 testsuites -
1) console-testsuite. This is an example of starting selenium server
and using selenium to perform GUI tests with browser. Also serves as
an example for using testng testcases (http://www.testng.org)

2) deployment-testsuite. This is an example for deploying/ undeploying modules.

To create your own testsuite, you may either
- use these examples as templates.
- use testsuite-archetype-plugin. This creates an empty testsuite with
no tests but will just start and stop server. Simply drop your tests
here and they will execute in between.

Issues:
----------
1) since the binary is still in JDK14 whereas the build requires
JDK15, the server that the testsuite tries to start fails. The
workaround is to install and start the server before running the
testsuite. It finds the running instance of the server and continues.

2) tests in console-testsuites are broken.
(http://issues.apache.org/jira/browse/GERONIMO-2579#action_12451225).
But the framework itself can be successfully used by using junit
tests. Proof: deployment-testsuite works successfully.

TODO:
----------
1) ejbcontainer-testsuite is almost ready to be added to the testsuite.
2) work on site documentation.
3) more and more testsuites for major functional areas of the server.
4) hook this with CI builds to mail test results.

Acknowledgements:
-----------------------------
Special thanks to Jason Dillion for helping me commit a lot of this
stuff in the initial stages and acting as my sounding board.

Cheers
Prasad.



Reply via email to