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:
      mvn test
    • subset of tests by mask:
      mvn test -Dtest=TestUserService
  2. running tests from Eclipse IDE:
    • 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:/home/solomax/.m2/repository/org/apache/openjpa/openjpa/3.2.2/openjpa-3.2.2.jar -Dom.home=${workspace_loc:openmeetings-web}/target/test-root/ -Dbackups.dir=${workspace_loc:openmeetings-web}/target/test-data
  • To avoid temporary files being created in OM root, modify "Working Directory" as follows
    ${workspace_loc:openmeetings-web/target}
  • Open Dependencies tab and add folder /openmeetings-web/target/test-root/WEB-INF/classes to CLASSPATH

  • Select Debug
Apache OpenMeetings, OpenMeetings, Apache, the Apache feather, and the Apache OpenMeetings project logo
are trademarks of the Apache Software Foundation.
Privacy policy