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/2.4.1/openjpa-2.4.1.jar -Dom.home=${workspace_loc:openmeetings-web}/src/main/webapp/ -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}

  • Select Debug

Back to top