erlang:test

Full name:

eu.lindenbaum:maven-erlang-plugin:1.0.0-beta:test

Description:

Mojo running test cases.

This Mojo will either run a specific test case (if the user specified one using -Dtest=test_module_test) or run all test cases found in the AbstractErlangMojo.srcTestErlang directory.

The user can also choose to skip testing by specifying -DskipTests. A test code coverage will automatically be applied. A report about the test coverage may be created using the CoverageReport.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: test.

Optional Parameters

Name Type Since Description
failIfNoTests boolean - Setting this to true will break the build if there are no tests to run.
Default value is: false.
skipTests boolean - Setting this to true will skip the test runs.
Default value is: false.
test String - Setting this to a module name, will only run this test case.

For example, specifying my_module_test will run the test target/test/my_module_test.beam.


Parameter Details

failIfNoTests:

Setting this to true will break the build if there are no tests to run.
  • Type: boolean
  • Required: No
  • Expression: ${failIfNoTest}
  • Default: false

skipTests:

Setting this to true will skip the test runs.
  • Type: boolean
  • Required: No
  • Expression: ${skipTests}
  • Default: false

test:

Setting this to a module name, will only run this test case.

For example, specifying my_module_test will run the test target/test/my_module_test.beam.

  • Type: java.lang.String
  • Required: No
  • Expression: ${test}