Skip to main content

Version: 22.04

svc-test

The svc-test task runs a service's unit test locally.

Task Attributes

All attributes are optional unless otherwise indicated.

AttributeDescription
fileString

The service definition file (which contains the unit tests).

clientCodeString

Required. The service Organization client code.

nameString

The service name to remove.

versionString

The service version number.

Example

The example ant task below runs the "trackme-dd" service's unit tests on the local computer.

<svc-test file="src/trackme-dd/service-def.json"
clientCode="maguire"
name="Trackme DD"
version="1.0.0" />

Example Ant log output:

svc-test:
[svc-test] Test succeeded in 1240 ms
[svc-test] 23:30:31,892 INFO {
[svc-test] "address": {
[svc-test] "firstLine": "123 Wall Street"
[svc-test] }
[svc-test] }