{ "base": "\https://api.buddybuild.com/v1", "endpoint": "/builds/:build_id:/tests", "method": "get", "params": { "headers": [ { "name": "Authorization", "type": "Bearer :api-access-token:", "req": true, "cue": "Enter your API access token" } ], "path": [ { "name": ":build_id:", "type": "string", "desc": 'Build identifier', "req": true, "cue": 'Enter a build id' } ], "query": [ { "name": "showFailed", "type": "string", "desc": "Show failed tests", "def": false, "req": false, "cue": 'Enter "true" to include failed tests' }, { "name": "showPassing", "type": "boolean", "desc": "Show passing tests", "def": false, "req": false, "cue": 'Enter "true" to include passing tests' } ], "body": [] }, "authentication": "required" }
Show test results
Definition
Placeholder for the definition; auto-generated from JSON above.
Use this method to show test results for a build with a specified build_id
.
By default only failed tests are shown. Use the showFailed
and showPassing
options to control the display of failed and passing tests in the response.
Note
|
Looking for your API access token? Read more about authenticating with buddybuild or show your personal access token. |
Parameters
Required = *
Placeholder for the endpoint parameters; auto-generated from JSON above.
curl
curl -X GET \
-H 'Authorization: Bearer :api-access-token:' \
'https://api.buddybuild.com/v1/builds/:build_id:/tests?showFailed=true&showPassing=true'
jquery
var settings = {
"async": true,
"crossDomain": true,
"url": "https:////api.buddybuild.com/v1/builds/:build_id:/tests?lshowFailed=true&showPassing=true",
"method": "GET",
"headers": {
"authorization": "Bearer :api-access-token:"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Response
{
"build_id": "58b899061baced0100616172",
"tests": [
{
"run": "iPhone 6s",
"target": "MyAppTests",
"suite": "AuthTests",
"name": "testLogin()",
"status": "failed"
},
{
"run": "iPhone 7",
"target": "MyAppTests",
"suite": "AuthTests",
"name": "testSignUp()",
"status": "failed"
}
]
}