Version: 21.11 (EOL)
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 | StringThe service definition file (which contains the unit tests).  | 
clientCode | StringRequired. The service Organization client code.  | 
name | StringThe service name to remove.  | 
version | StringThe 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]         }