Forum Discussion

ricardo_moura's avatar
ricardo_moura
Occasional Contributor
7 years ago

how to include response fields in contract coverage test?

hello my friends

i received a .json swagger definition of resources and fields of each one like below:

 

"FieldA": {
    "type": "object",
    "description": "is required",
    "properties": {
        "fieldA1": {
            "type": "string"
        },
        "fieldA2": {
            "type": "string"
        },
        "fieldA3": {
            "type": "string"
        },
        "fieldA4": {
            "type": "string"
        },
        "fieldA5": {
            "type": "string"
        }
    }
}

and i need to do contract coverage test, but when i run it, i get only status of messages coverage results,

i can include all fields of my .json definition on coverage test?


i want show for team how much of definitions my tests cover

 

thanks for all

1 Reply