You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Scott Gray (JIRA)" <ji...@apache.org> on 2010/04/17 06:33:26 UTC

[jira] Commented: (OFBIZ-3670) TestCase base classes providing ability to execute unit tests in Eclipse in "standalone" mode

    [ https://issues.apache.org/jira/browse/OFBIZ-3670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858093#action_12858093 ] 

Scott Gray commented on OFBIZ-3670:
-----------------------------------

Hi Bob,

I don't really like this approach for a couple of reasons:
1.  We already have a rollback system in place
2.  OFBiz allows unit tests to depend on each other within a suite which your approach won't allow because of each unit test doing a rollback
3.  If this is committed then we'll end up with two different approaches to testing and it will be more complicated for people to write new tests

Why not just improve the TestRunContainer to allow it to start OFBiz and pass in arguments of what tests to run?

> TestCase base classes providing ability to execute unit tests in Eclipse in "standalone" mode
> ---------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3670
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3670
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Bob Morley
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3670_StandaloneTestEnhancement.patch
>
>
> This patch provides the framework that allows junit unit tests to be executed directly in Eclipse (without having to invoke Start directly).  It total it contains:
> - BaseTestCase - very top of the TestCase stack containing ofbiz specific assertions
> - StandaloneTestCase - determines if application has executed "Start"; if not it will execute a scaled down "Start unittest" that is used in Eclipse
> - RollbackTestCase - extends standalone and provides a transaction w/ auto-rollback
> - TestRunContainer - provides ability to disable dispatcher attributes via configuration (used for unittest-containers.xml)
> - GeoWorkerTest - unittester that provides "full" coverage of GeoWorker; can be executed from Eclipse or from command-line as it is plugged into standard testdef framework.  Creates its own entities with transaction start/rollback so it can be re-executed.
> Would appreciate if this can be a priority so I can provide additional test cases to boost our code coverage that will utilize these features.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira