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

Paramteres in the enpoints are not able to covered #106

Closed karishma191119 closed 2 years ago

karishma191119 commented 2 years ago

I'm submitting a ...

if the current behavior is a bug, please provide steps to reproduce, broken swagger specification and swagger-coverage-output:

What is the expected behavior?

What is the motivation / use case for changing the behavior? Generate coverage report for parameters

parameter

viclovsky commented 2 years ago

Hi, @karishma191119 Sounds like you have specification with broken paths in $ref I’ll fix $ref in the nearest future. To overcame the issue you should make workaround: list all files with specification in the only one file.

viclovsky commented 2 years ago

Ok, got it. Sounds like you should add special option : https://github.com/viclovsky/swagger-coverage#specification-parser-configuration

"parseOptions": {
  "resolve": true
}

It your $ref has right paths => all should work fine. In nearest release, I’ll add switching on $refs by default.

karishma191119 commented 2 years ago

Ok, got it. Sounds like you should add special option : https://github.com/viclovsky/swagger-coverage#specification-parser-configuration

"parseOptions": {
  "resolve": true
}

It your $ref has right paths => all should work fine. In nearest release, I’ll add switching on $refs by default.

karishma191119 commented 2 years ago

Ok, got it. Sounds like you should add special option : https://github.com/viclovsky/swagger-coverage#specification-parser-configuration

"parseOptions": {
  "resolve": true
}

It your $ref has right paths => all should work fine. In nearest release, I’ll add switching on $refs by default.

Thank you for responding @viclovsky, I tried of this solution in many ways to implement,but it dosent work,Can you please allobrate how to pass this "parseOptions parameter"...It will help us if you provide detail solution and also hope that you will add this $ref in this tool