Version: 21.11
svc-test
The svc-test
task runs a service's unit test locally.
Task Attributes
All attributes are optional unless otherwise indicated.
Attribute | Description |
---|---|
file | String The service definition file (which contains the unit tests). |
clientCode | String Required. The service Organization client code. |
name | String The service name to remove. |
version | String 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] }