openl:test

Full name:

org.openl.rules:openl-maven-plugin:5.26.0:test

Description:

Runs OpenL Tablets tests.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: test.

Required Parameters

Name Type Since Description
<workspaceFolder> File - Directory containing the generated artifact.
Default value is: ${project.build.directory}/openl-workspace.

Optional Parameters

Name Type Since Description
<externalParameters> Map - Additional options for testing defined externally.
<maxModulesInMemory> int - Parameter for compiling the project in the smart mode to save the memory, where each module is compiled in sequence and tests from that module are run. This parameter is beneficial for big projects.
Default value is: 0.
<reportsDirectory> File - Base directory where all reports are saved. Reports are surefire format compatible.
Default value is: ${project.build.directory}/openl-test-reports.
<reportsFormat> ReportFormat[] - File format of the test reports. Supported values: junit4 or xlsx.
Default value is: junit4.
<singleModuleMode> boolean - Parameter for compiling the project in the single module mode, where each module is compiled in sequence and tests from that module are run. This parameter is beneficial for big projects. If this parameter is set to false, all modules are compiled at once and all tests from all modules are run.
Default value is: false.
<skipTests> boolean - Parameter to skip running OpenL Tablets tests if it set to 'true'.
User property is: skipTests.
<sourceDirectory> File 5.19.0 Folder that contains all OpenL Tablets-related resources such as rules and project descriptor, for example, ${project.basedir}/src/main/openl.
Default value is: ${project.build.sourceDirectory}/../openl.
<testSourceDirectory> File - Directory containing OpenL Tablets sources to be used in testing OpenL Tablets rules.
Default value is: ${project.build.testSourceDirectory}/../openl.
<threadCount> String - Thread count to run test cases. The values are as follows:
  • 4 - Runs tests with four threads.
  • 1.5C - Runs tests with 1.5 thread per CPU core.
  • none - Runs tests sequentially. No extra threads for running tests are created.
  • auto - Automatically configures thread count.

Default value is: auto.

Parameter Details

<externalParameters>

Additional options for testing defined externally.
  • Type: java.util.Map
  • Required: No

<maxModulesInMemory>

Parameter for compiling the project in the smart mode to save the memory, where each module is compiled in sequence and tests from that module are run. This parameter is beneficial for big projects.
  • Type: int
  • Required: No
  • Default: 0

<reportsDirectory>

Base directory where all reports are saved. Reports are surefire format compatible.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/openl-test-reports

<reportsFormat>

File format of the test reports. Supported values: junit4 or xlsx.
  • Type: org.openl.rules.maven.ReportFormat[]
  • Required: No
  • Default: junit4

<singleModuleMode>

Parameter for compiling the project in the single module mode, where each module is compiled in sequence and tests from that module are run. This parameter is beneficial for big projects. If this parameter is set to false, all modules are compiled at once and all tests from all modules are run.
  • Type: boolean
  • Required: No
  • Default: false

<skipTests>

Parameter to skip running OpenL Tablets tests if it set to 'true'.
  • Type: boolean
  • Required: No
  • User Property: skipTests

<sourceDirectory>

Folder that contains all OpenL Tablets-related resources such as rules and project descriptor, for example, ${project.basedir}/src/main/openl.
  • Type: java.io.File
  • Since: 5.19.0
  • Required: No
  • Default: ${project.build.sourceDirectory}/../openl

<testSourceDirectory>

Directory containing OpenL Tablets sources to be used in testing OpenL Tablets rules.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.testSourceDirectory}/../openl

<threadCount>

Thread count to run test cases. The values are as follows:
  • 4 - Runs tests with four threads.
  • 1.5C - Runs tests with 1.5 thread per CPU core.
  • none - Runs tests sequentially. No extra threads for running tests are created.
  • auto - Automatically configures thread count.
  • Type: java.lang.String
  • Required: No
  • Default: auto

<workspaceFolder>

Directory containing the generated artifact.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/openl-workspace