How to generate tests for all enums defined in a specification #502
-
Hi there, Is it possible in portman to generate tests which include all possible values defined in an enum. For example, I want to generate 5 tests which use each value in my salutation enum. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @PaulCluver The schema validation will use the ENUM values to validate if the response contains any of the allowed values. Next to this, you could manually create a contentTests > responseBodyTests using the |
Beta Was this translation helpful? Give feedback.
Hi @PaulCluver
The schema validation will use the ENUM values to validate if the response contains any of the allowed values.
Next to this, you could manually create a contentTests > responseBodyTests using the
oneOf
property, to manually validate the content.https://github.com/apideck-libraries/portman#portman---contenttests-properties