Skip to content

Instantly share code, notes, and snippets.

@amtrack
Last active September 2, 2016 11:15
Show Gist options
  • Save amtrack/d978987b1789e1f97c2285f6d29ecace to your computer and use it in GitHub Desktop.
Save amtrack/d978987b1789e1f97c2285f6d29ecace to your computer and use it in GitHub Desktop.
force-dev-tool test responses
{
"checkOnly": true,
"completedDate": "2016-09-02T09:50:32.000Z",
"createdBy": "00520000003CbxU",
"createdByName": "John Doe",
"createdDate": "2016-09-02T09:50:32.000Z",
"details": {
"runTestResult": {
"codeCoverage": {
"id": "01p20000000clQaAAI",
"locationsNotCovered": {
"column": "0",
"line": "3",
"numExecutions": "0",
"time": "-1.0"
},
"name": "Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"numLocations": "1",
"numLocationsNotCovered": "1",
"type": "Class"
},
"codeCoverageWarnings": {
"id": "01p20000000clQaAAI",
"message": "Average test coverage across all Apex Classes and Triggers is 0%, at least 75% test coverage is required.",
"name": {
"$": {
"xsi:nil": "true"
}
},
"namespace": ""
},
"numFailures": "0",
"numTestsRun": "0",
"totalTime": "0.0"
}
},
"done": true,
"id": "0Af20000006FyZkCAK",
"ignoreWarnings": false,
"lastModifiedDate": "2016-09-02T09:50:32.000Z",
"numberComponentErrors": 0,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 0,
"numberTestErrors": 0,
"numberTestsCompleted": 0,
"numberTestsTotal": 0,
"rollbackOnError": true,
"runTestsEnabled": "true",
"startDate": "2016-09-02T09:50:32.000Z",
"status": "Failed",
"success": false
}
{
"checkOnly": true,
"completedDate": "2016-09-02T09:54:31.000Z",
"createdBy": "00520000003CbxU",
"createdByName": "John Doe",
"createdDate": "2016-09-02T09:54:25.000Z",
"details": {
"runTestResult": {
"codeCoverage": {
"id": "01p20000000clQaAAI",
"name": "Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"numLocations": "1",
"numLocationsNotCovered": "0",
"type": "Class"
},
"numFailures": "0",
"numTestsRun": "1",
"successes": {
"id": "01p20000000clQfAAI",
"methodName": "test_method_one",
"name": "Test_Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"time": "91.0"
},
"totalTime": "144.0"
}
},
"done": true,
"id": "0Af20000006FyZpCAK",
"ignoreWarnings": false,
"lastModifiedDate": "2016-09-02T09:54:31.000Z",
"numberComponentErrors": 0,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 0,
"numberTestErrors": 0,
"numberTestsCompleted": 1,
"numberTestsTotal": 1,
"rollbackOnError": true,
"runTestsEnabled": "true",
"startDate": "2016-09-02T09:54:31.000Z",
"status": "Succeeded",
"success": true
}
{
"checkOnly": true,
"completedDate": "2016-09-02T11:12:09.000Z",
"createdBy": "00520000003CbxU",
"createdByName": "John Doe",
"createdDate": "2016-09-02T11:12:08.000Z",
"details": {
"runTestResult": {
"codeCoverage": {
"id": "01p20000000clQaAAI",
"name": "Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"numLocations": "1",
"numLocationsNotCovered": "0",
"type": "Class"
},
"failures": {
"id": "01p20000000clQkAAI",
"message": "System.AssertException: Assertion Failed",
"methodName": "test_method_one",
"name": "Test_Foo2",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"packageName": "Test_Foo2",
"stackTrace": "Class.Test_Foo2.test_method_one: line 7, column 1",
"time": "33.0",
"type": "Class"
},
"numFailures": "1",
"numTestsRun": "2",
"successes": {
"id": "01p20000000clQfAAI",
"methodName": "test_method_one",
"name": "Test_Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"time": "115.0"
},
"totalTime": "187.0"
}
},
"done": true,
"id": "0Af20000006FydICAS",
"ignoreWarnings": false,
"lastModifiedDate": "2016-09-02T11:12:09.000Z",
"numberComponentErrors": 0,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 0,
"numberTestErrors": 1,
"numberTestsCompleted": 1,
"numberTestsTotal": 2,
"rollbackOnError": true,
"runTestsEnabled": "true",
"startDate": "2016-09-02T11:12:08.000Z",
"status": "Failed",
"success": false
}
{
"checkOnly": true,
"completedDate": "2016-09-02T11:14:03.000Z",
"createdBy": "00520000003CbxU",
"createdByName": "John Doe",
"createdDate": "2016-09-02T11:14:00.000Z",
"details": {
"runTestResult": {
"codeCoverage": {
"id": "01p20000000clQaAAI",
"name": "Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"numLocations": "1",
"numLocationsNotCovered": "0",
"type": "Class"
},
"failures": [
{
"id": "01p20000000clQkAAI",
"message": "System.AssertException: Assertion Failed",
"methodName": "test_method_one",
"name": "Test_Foo2",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"packageName": "Test_Foo2",
"stackTrace": "Class.Test_Foo2.test_method_one: line 7, column 1",
"time": "33.0",
"type": "Class"
},
{
"id": "01p20000000clQfAAI",
"message": "System.AssertException: Assertion Failed: Expected: foo, Actual: bar",
"methodName": "test_method_one",
"name": "Test_Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"packageName": "Test_Foo",
"stackTrace": "Class.Test_Foo.test_method_one: line 8, column 1",
"time": "76.0",
"type": "Class"
}
],
"numFailures": "2",
"numTestsRun": "2",
"totalTime": "170.0"
}
},
"done": true,
"id": "0Af20000006FydNCAS",
"ignoreWarnings": false,
"lastModifiedDate": "2016-09-02T11:14:03.000Z",
"numberComponentErrors": 0,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 0,
"numberTestErrors": 2,
"numberTestsCompleted": 0,
"numberTestsTotal": 2,
"rollbackOnError": true,
"runTestsEnabled": "true",
"startDate": "2016-09-02T11:14:02.000Z",
"status": "Failed",
"success": false
}
{
"checkOnly": true,
"completedDate": "2016-09-02T10:03:16.000Z",
"createdBy": "00520000003CbxU",
"createdByName": "John Doe",
"createdDate": "2016-09-02T10:03:04.000Z",
"details": {
"runTestResult": {
"codeCoverage": {
"id": "01p20000000clQaAAI",
"name": "Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"numLocations": "1",
"numLocationsNotCovered": "0",
"type": "Class"
},
"numFailures": "0",
"numTestsRun": "2",
"successes": [
{
"id": "01p20000000clQkAAI",
"methodName": "test_method_one",
"name": "Test_Foo2",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"time": "49.0"
},
{
"id": "01p20000000clQfAAI",
"methodName": "test_method_one",
"name": "Test_Foo",
"namespace": {
"$": {
"xsi:nil": "true"
}
},
"time": "125.0"
}
],
"totalTime": "209.0"
}
},
"done": true,
"id": "0Af20000006FyZuCAK",
"ignoreWarnings": false,
"lastModifiedDate": "2016-09-02T10:03:16.000Z",
"numberComponentErrors": 0,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 0,
"numberTestErrors": 0,
"numberTestsCompleted": 2,
"numberTestsTotal": 2,
"rollbackOnError": true,
"runTestsEnabled": "true",
"startDate": "2016-09-02T10:03:15.000Z",
"status": "Succeeded",
"success": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment