Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property Name

...

Required

...

Description

The runJUnitTests operation allows for running JUnit tests on Mule Servers. Although this operation was not designed for use with Mavenized Mule projects, it will run tests on them as well, and could serve to prove that the <provided> scope jars are indeed provided by the Mule server.

This operation should run on the Mule server where the project will be deployed. The FDMULE_HOME property is used to find the libraries that are necessary to compile and run the Mule project tests.

The project tests will be built using javac and other command line tools.

This operation should be run after the buildMule operation, and on the same endpoint, environment, and instance.

Make sure that the JDK HOME specified on the endpoint is a JDK of the required version.

Environment/Instance Properties

testApplication operation runs Maven, defaulting to the Test Phase.

  

Environment/Instance Properties

Property Name

Property Code

Required

Description

Maven Home

FDMVN_MAVEN_HOME

No

If it is desired to use an external Maven, fill in the Maven Home here. Otherwise, the internal Maven 3.05 will be used.

Maven Environment ScriptFDMVN_MAVEN_ENV_SCRIPTNoIf necessary, provide a script to source variables for use by the Maven Plugin.

  

Project Properties

Yes

Property Name

Property Code

Required

Description

FDMULE_APP_NAMEFDMULE_HOME




  

Inputs

Input Name

Input Code

Required

Description

Mule Project PathLocationFDMULEFDMVN_PROJECT_PATHLOCATIONNoThis is the folder that typically is named for your application and contains your [src] folder. Relative paths are sourced from Path to the project which contains a POM file. If a relative path is given, a path inside of the FD_TEMP_DIR will be assumed.
http.portFDMULE_HTTP_PORTNoHTTP port to use when running JUnit tests. This should be a different number than the one that is usually used to run the application on the server. This only works if
${http.port} is used in your HTTP Connector.Run Phases
FDMVN_RUN_PHASESYesSpace-delimited Maven life cycle phases to execute, (e.g. test). Defaults to test.
ArgumentsFDMVN_ARGSNoSpace-delimited argument list (e.g. -B -fae -X -Dhttp.port=9876)

  

Outputs

Output Name

Required

Description




  

Artifacts

This operation produces artifacts that will be stored in the artifacts repository.

  

Endpoint Selection

This operation will select all available endpoints associated to the environment/instance.

  

Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

...