swagger-test-templates
swagger-test-templates copied to clipboard
Access to response for custom assertion
It could be good to define additional assertion while generating tests
+1
Similar to "requestData", ability to have "expectedResponse" or "expectedData" for each input (from requestData) will be very valuable. Basic assertion like assert.deepEqual() for json responses.
Can be as simple as:
{
'/pet': {
get: {
'200': [
{ param: 'spot', description:'some description of the data', expected: expectedJSONresponeForSpot},
{ param: 'tops', description:'some description of the data', expected: expectedJSONresponeForTops}
]
}
}
}