Tcases with oneOf multiple schemas #254
-
Hello, I was testing to see how tcases handles the use of oneOf in openapi. Based on this example spec, generating tests with tcases-api-test is possible and functions correctly, but does not do so in examples mode. If run with source set to examples, tcases is unable to generate any test data of its own, even if no example data is provided which I had thought should function equivalently to running tcases normally. Is this the expected behavior? https://github.com/Cornutum/tcases/blob/master/tcases-openapi/README.md#openapi-tips Based on reading the tips in above, I believe it should be possible to have tcases work with the spec layout provided and have examples for some of the properties in the schema section and have tcases generate random values for others |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, this should work. Creating an issue to resolve this problem. |
Beta Was this translation helpful? Give feedback.
-
See issue #255 |
Beta Was this translation helpful? Give feedback.
See issue #255