viclovsky / swagger-coverage

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

How to change the swagger-coverage-output folder location? #112

Closed vadimglushonkov closed 1 year ago

vadimglushonkov commented 2 years ago

Can't find a way to do it with the config, what if we want to put this output to another location?

Goralive commented 1 year ago

So to override this constants https://github.com/viclovsky/swagger-coverage/blob/master/swagger-coverage-commons/src/main/java/com/github/viclovsky/swagger/coverage/SwaggerCoverageConstants.java you need to provide a new writer into the filter (FileSystemOutputWriter). The writer can be different.

SwaggerCoverageV3RestAssured(FileSystemOutputWriter(Paths.get("build/bob"))) -> should create folder bob in build.

I hope it help's!