Cornutum / tcases

A model-based test case generator
MIT License
218 stars 54 forks source link

Tcases with oneOf multiple schemas #255

Closed kerrykimbrough closed 1 year ago

kerrykimbrough commented 1 year ago

Discussed in https://github.com/Cornutum/tcases/discussions/254

Originally posted by **aeringis** November 9, 2022 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 Screen Shot 2022-11-09 at 2 08 55 PM
kerrykimbrough commented 1 year ago

@aeringis Fixed in release 3.8.6