Test run considerations for JUnit tests

Before you can run JUnit tests on HCL OneTest Server, you must read the considerations that you must take into account and complete the tasks indicated.

Before you run JUnit tests, you must have completed the following tasks:
  • You must ensure that the JUnit extension on HCL OneTest Server is enabled. You must enable the JUnit extension at the time of installation of the server software or before you add the repository that contains the JUnit tests to the server project. See Enabling server extensions.
  • You must have created the JUnit tests that use JDK 8, as part of a Maven V3.6.3 project. The Maven project must contain the Maven Surefire plug-in, which is required to run the JUnit tests contained in the Maven project. The Maven project as a pom.xml must be committed to the remote repository.
    Note: If you create the JUnit tests on other versions of JDK, you must copy the JDK version to the userlibs pod under the /data/junit-ext/jdks directory. See Copying third-party application Jars to Kubernetes.
Restriction: You cannot run the test assets on a remote Docker host.