viclovsky / swagger-coverage

Tool which generates full picture of coverage of API tests based on OAS (Swagger) v2 and v3
Apache License 2.0
197 stars 38 forks source link

Incorrect display of method coverage with file upload with body #131

Open andreevich96 opened 1 year ago

andreevich96 commented 1 year ago

I'm submitting a ...

What is the current behavior?

When working with a controllers method to which you can send a file and the meta, swagger coverage reports that the file and the meta is not empty - twice. But I'm definitely sending a non-empty file and meta. Swagger coverage - image Method - image

There is an exemple of request:

 given()
                .auth()
                .oauth2(accessToken)
                .multiPart("file", new File(pathName)), "application/vnd.ms-excel")
                .multiPart("meta", meta, "application/json")
                .when().post("v1/method-name/xls")).then()