My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
JUnitTestings  
Running Openmeetings [http://junit.org JUnit] tests
Updated Dec 7, 2011 by solomax...@gmail.com

Introduction

Automatic tests are the significant part of development process. Below is the instruction of how to run Openmeetings JUnit tests.

Details

  1. running tests using command line:
    • all tests:
    • ant test
    • subset of tests by mask:
    • ant -Dtestcases=TestError* test
  2. running tests from Eclipse IDE:
    • copy src/META-INF/yourdb_persistence.xml to src/META-INF/persistence.xml
    • Start Eclipse
    • Load workspace with Openmeetings project (or refresh existing project)
    • Select "Debug Configurations..."

  • Create New Junit configuration, give it a name and select test class
  • Select Arguments tab
  • Add the following code to the VM section
  • -javaagent:${workspace_loc:ROOT}/lib/openjpa2/openjpa-2.1.0.jar -Dwebapps.root=__<FULL PATH TO OPENMEETINGS>__\dist\red5\webapps\openmeetings

  • Select Debug

Powered by Google Project Hosting