Skip to content

Commit cefdf63

Browse files
Release 4.0.2 (#278)
1 parent c7f5275 commit cefdf63

13 files changed

Lines changed: 53 additions & 17 deletions

File tree

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Tcases: A Model-Based Test Case Generator #
22

3-
[![Maven](https://img.shields.io/badge/maven-4.0.1-green.svg)](https://search.maven.org/search?q=tcases-shell)
4-
[![Javadoc](https://img.shields.io/badge/javadoc-4.0.1-green.svg)](https://javadoc.io/doc/org.cornutum.tcases/tcases-shell)
3+
[![Maven](https://img.shields.io/badge/maven-4.0.2-green.svg)](https://search.maven.org/search?q=tcases-shell)
4+
[![Javadoc](https://img.shields.io/badge/javadoc-4.0.2-green.svg)](https://javadoc.io/doc/org.cornutum.tcases/tcases-shell)
55

66
## What's New? ##
7-
* The latest version ([Tcases 4.0.1](ReleaseNotes.md#401)) is now available at the Maven Central Repository.
7+
* The latest version ([Tcases 4.0.2](ReleaseNotes.md#402)) is now available at the Maven Central Repository.
88
See [*How To Download Tcases*](HowToDownload.md) for download instructions.
99

10-
* Tcases 4.0.1 provides several improvements, including a new guide to [using the Tcases API](Using-Tcases-API.md).
11-
See the [release notes](ReleaseNotes.md#401) for details.
12-
1310
* Having trouble with Tcases? Check out [these tips](./Troubleshooting-FAQs.md).
1411

1512
* Got a question? Need some guidance? Start a [discussion](https://github.com/Cornutum/tcases/discussions).

ReleaseNotes.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Release Notes #
22

3+
## 4.0.2 ##
4+
5+
This release provides the following improvements.
6+
7+
* **Skip "too large" failure cases for array variables when infeasible** [[276](https://github.com/Cornutum/tcases/issues/276)]
8+
9+
You can use a [variable schema](./Tcases-Guide.md#defining-variable-schemas) to automatically generate value definitions.
10+
For a variable with a schema of type `array`, Tcases will normally generate a "too large" failure value definition, using
11+
an array value that exceeds the specified `maxItems`. But in some cases, this failure is infeasible. For example, consider
12+
the following definition for the `switches` array.
13+
14+
```json
15+
{
16+
"system": "MySystem",
17+
"MyFunction": {
18+
"arg": {
19+
"switches": {
20+
"type": "array",
21+
"maxItems": 2,
22+
"uniqueItems": true,
23+
"items": {
24+
"type": "boolean"
25+
}
26+
}
27+
}
28+
}
29+
}
30+
```
31+
32+
A "too large" failure value would require an array containing three or more boolean values. But such an array is not possible without
33+
violating the `uniqueItems` condition. Because a failure value must represent single distinct error, the "too large" failure is infeasible.
34+
35+
In previous versions of Tcases, this situation would cause Tcases to throw an exception and give up. But in this release, Tcases will
36+
simply skip the infeasible "too large" case and keep going.
37+
38+
* **Upgraded dependencies**
39+
40+
Upgraded to swagger-parser 2.1.15.
41+
342
## 4.0.1 ##
443

544
This release provides the following improvements.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>org.cornutum.tcases</groupId>
88
<artifactId>tcases</artifactId>
99
<packaging>pom</packaging>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111

1212
<name>Tcases</name>
1313
<description>Generates test cases from system input space models</description>

tcases-ant/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-ant</artifactId>

tcases-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-cli</artifactId>

tcases-io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-io</artifactId>

tcases-lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-lib</artifactId>

tcases-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-maven-plugin</artifactId>

tcases-moco/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-moco</artifactId>

tcases-openapi-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>4.0.2-SNAPSHOT</version>
10+
<version>4.0.2</version>
1111
</parent>
1212

1313
<artifactId>tcases-openapi-test</artifactId>

0 commit comments

Comments
 (0)