|
1 | 1 | # Release Notes # |
2 | 2 |
|
| 3 | +## 4.1.0 ## |
| 4 | + |
| 5 | +This release provides the following improvements to Tcases for OpenAPI. |
| 6 | + |
| 7 | + * **More info for TestWriter and TestCaseWriter authors** |
| 8 | + |
| 9 | + Want to add support for non-Java test cases or different test frameworks? There's some things you need to know. And now you can find them |
| 10 | + in the new guide to [_Using the TestWriter API_](tcases-openapi/Using-TestWriter-API.md). |
| 11 | + |
| 12 | + * **TestWriter annotations** |
| 13 | + |
| 14 | + To support test case generation for different test frameworks, new `TestWriter` implementations using the |
| 15 | + [`ApiTestWriter`](https://www.cornutum.org/tcases/docs/api/org/cornutum/tcases/openapi/testwriter/ApiTestWriter.html) |
| 16 | + annotation can be integrated at runtime. |
| 17 | + Similarly, the |
| 18 | + [`ApiTestCaseWriter`](https://www.cornutum.org/tcases/docs/api/org/cornutum/tcases/openapi/testwriter/ApiTestCaseWriter.html) |
| 19 | + and |
| 20 | + [`ApiTestTarget`](https://www.cornutum.org/tcases/docs/api/org/cornutum/tcases/openapi/testwriter/ApiTestTarget.html) |
| 21 | + annotations can be used to integrate new `TestCaseWriter` and `TestTarget` implementations, respectively. For details, see |
| 22 | + [_Using the TestWriter API_](tcases-openapi/Using-TestWriter-API.md). |
| 23 | + |
| 24 | + * **Exclude success or failure cases** |
| 25 | + |
| 26 | + It can be helpful to generate success cases and failure cases separately. For example, you might want to generate success cases |
| 27 | + based on OpenAPI examples but generate random failures based on OpenAPI schemas. (See discussion [318](https://github.com/Cornutum/tcases/discussions/318).) |
| 28 | + To exclude success cases, use the `-xs` option of the `tcases-api-test` command (or `-DexcludeSuccess=true` if using the Maven `tcases:api-test` goal). |
| 29 | + Similarly, to exclude failure cases, use the `-xf` option of the `tcases-api-test` command (or `-DexcludeFailure=true` if using the Maven `tcases:api-test` goal). |
| 30 | + |
| 31 | + * **Fixed generated base class import** [[313](https://github.com/Cornutum/tcases/issues/313)] |
| 32 | + |
| 33 | + Yikes! When the base class for the generated test class is in a different package, the generated `import` statement |
| 34 | + was missing a final ';'. But not anymore. |
| 35 | + |
| 36 | + * **Upgraded dependencies** |
| 37 | + |
| 38 | + Upgraded to swagger-parser 2.1.25. |
| 39 | + |
3 | 40 | ## 4.0.5 ## |
4 | 41 |
|
5 | 42 | This release provides the following improvements. |
|
0 commit comments