Glad your willing to put some time in on Testing.
subscribe to and search the Dev list there has been recent discussions.
#1 i suggest you check out the most current copy if you have not already
then migrate to Junit4 locally. If you test it and it workks submit a Jira.
#2 do an ./ant -p on the current options to doing Tests.
#3 not clear on what you hope to accomplish, since everything is loaded
before hot deploy.
However if you understand the dependecies for the component you wish to
test you can edit the component-load.xml.
René Scheibe sent the following on 8/1/2010 4:25 AM:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am not happy how I have to develop/test components in hot-deploy. It
does not encourage test-driven development. That's also reflected in the
quite low number of unit tests in the whole OFBiz system. :-(
1. What are the plans to migrate to JUnit4?
- - I just have seen a post about renaming tests
(http://comments.gmane.org/gmane.comp.java.ofbiz.devel/44766) but no
follow-up
- - if I want to migrate OFBiz to JUnit4 do you have any tips or is there
anything special I have to take care of?
2. Is it possible to run multiple test suites at the same time?
- - the current ant task "run-single-test-suite" only takes 1
test.component and test.suiteName
- - OFBiz should not be restarted for each test suite
3. Is there a way to "hot-deploy" a component jar for testing purposes?
- - the OFBiz startup time is way to high to have a good dev-test-feedback
loop
- - where should I start if I want to enhance OFBiz to make this possible
Regards,
Rene Scheibe
- --
René Scheibe * [email protected]
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkxVWZQACgkQUXs9EHvIuCrwKQCeNc0k8Ou/6rafg/63dY1qGYH0
ffAAnRLr/1314bInUrCcm/4Io/DVMCsz
=OaYt
-----END PGP SIGNATURE-----