Use the following procedure to create a B-unit Ant script:
Ensure your orchestration projects contains one or more B-unit tests or suites, as described in
Creating a BPEL Unit Test File.
Select one B-unit test or suite and right mouse-click to select
New > BUnit Ant Script
.
In the Export B-unit Ant Script wizard, select a folder, such as the
test
folder, and enter a filename. Select Next.
Select the B-unit tests and suites to include. You can select multiple tests from multiple projects. Also, after you create the script, you can edit it to add more folders of tests.
Select the B-unit options as desired:
Enable Tracing
. Controls console logging output for B-unit-specific execution commands.
Enable Process Logging
. Controls the amount of process execution data to log. The default is
none
. Enabling the checkbox turns on
execution
level. If desired, you can manually edit the Ant script to enable
execution-data
(execution with data) or
full
logging.
Select
Finish
to generate the
filename
.ant.xm
l file.
The ant script opens in an editor for you to view or edit. Follow the instructions in the ant script to set the B-unit runtime classpath if you wish to execute this script outside of Process Developer.
You can create a code coverage report when you run a B-unit ant script on the command line. For details, see
Generating a Code Coverage Report.