openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

Add unit tests for the functions in schemaUtils.js

Open umeshp7 opened this issue 5 years ago • 5 comments

Add unit tests for the following: checkPathVariables checkQueryParams checkRequestHeaders checkRequestBody checkResponses

umeshp7 avatar Feb 24 '20 09:02 umeshp7

Hi, @umeshp7 can I work on this issue, also can you provide some more detail about the unit tests to be added.

sugam45 avatar Mar 01 '20 00:03 sugam45

Sure @sugam45. You could start by understanding what the above-mentioned functions do, determine all possible types of inputs and outputs (test-cases) each of them can have and then start writing unit tests for those. You can refer to the existing unit tests for this.

umeshp7 avatar Mar 01 '20 15:03 umeshp7

@umeshp7 taking this up, PR underway soon

vibhorgupta-gh avatar Mar 18 '20 13:03 vibhorgupta-gh

@umeshp7 is this issue still available?

vhawk19 avatar Sep 09 '20 21:09 vhawk19

@vhawk19 WIP PR is open at https://github.com/postmanlabs/openapi-to-postman/pull/159, You can create separate PR or use that as reference PR for contribution.

VShingala avatar Sep 10 '20 05:09 VShingala