Skip to content

Commit ceb2c7a

Browse files
committed
prepare release v0.4.2
1 parent 9361335 commit ceb2c7a

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ And you don't need to create Java objects (or POJO-s) for any of the payloads th
5252
* Syntax 'natively' supports JSON and XML - including [JsonPath](https://github.com/jayway/JsonPath) and [XPath](https://www.w3.org/TR/xpath/) expressions
5353
* Express expected results as readable, well-formed JSON or XML, and assert (in a single step) that the entire response payload (no matter how complex or deeply nested) - is as expected
5454
* Payload assertion failures clearly report which data element (and path) is not as expected, for easy troubleshooting of even large payloads
55+
* Simpler and more powerful alternative to JSON-schema for validating payload structure and data-types that even supports cross-field / domain validation logic
5556
* Scripts can call other scripts - which means that you can easily re-use and maintain authentication and 'set up' flows efficiently, across multiple tests
5657
* Embedded JavaScript engine that allows you to build a library of re-usable functions that suit your specific environment or organization
5758
* Re-use of payload-data and user-defined functions across tests is so easy - that it becomes a natural habit for the test-developer
@@ -90,13 +91,13 @@ So you need two `<dependencies>`:
9091
<dependency>
9192
<groupId>com.intuit.karate</groupId>
9293
<artifactId>karate-apache</artifactId>
93-
<version>0.4.1</version>
94+
<version>0.4.2</version>
9495
<scope>test</scope>
9596
</dependency>
9697
<dependency>
9798
<groupId>com.intuit.karate</groupId>
9899
<artifactId>karate-junit4</artifactId>
99-
<version>0.4.1</version>
100+
<version>0.4.2</version>
100101
<scope>test</scope>
101102
</dependency>
102103
```
@@ -116,7 +117,7 @@ You can replace the values of 'com.mycompany' and 'myproject' as per your needs.
116117
mvn archetype:generate \
117118
-DarchetypeGroupId=com.intuit.karate \
118119
-DarchetypeArtifactId=karate-archetype \
119-
-DarchetypeVersion=0.4.1 \
120+
-DarchetypeVersion=0.4.2 \
120121
-DgroupId=com.mycompany \
121122
-DartifactId=myproject
122123
```
@@ -1468,7 +1469,7 @@ Then match each json.hotels contains { totalPrice: '#($.roomInformation[0].roomP
14681469
There is a shortcut for `each` and equality (`==`) `match`-ing explained in the next section that can be quite useful, especially for schema-like validations.
14691470

14701471
## Schema Validation
1471-
Karate provides a far more simpler and more powerful way than [JSON-schema](http://json-schema.org) to validate the stucture of a given payload. You can even mix data and conditional validations and perform all assertions in a single step.
1472+
Karate provides a far more simpler and more powerful way than [JSON-schema](http://json-schema.org) to validate the stucture of a given payload. You can even mix domain and conditional validations and perform all assertions in a single step.
14721473

14731474
But first, a special short-cut for array validation needs to be introduced:
14741475

karate-apache/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-apache</artifactId>
1111
<packaging>jar</packaging>

karate-archetype/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-archetype</artifactId>
1111
<packaging>jar</packaging>

karate-archetype/src/main/resources/archetype-resources/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<java.version>1.8</java.version>
1313
<maven.compiler.version>3.6.0</maven.compiler.version>
14-
<karate.version>0.4.1</karate.version>
14+
<karate.version>0.4.2</karate.version>
1515
</properties>
1616

1717
<dependencies>

karate-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-core</artifactId>
1111
<packaging>jar</packaging>

karate-core/src/test/java/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mvn versions:set -DnewVersion=0.4.0-SNAPSHOT
22
(edit archetype karate-core version)
3-
(edit README.md maven 2 places)
3+
(edit README.md maven 3 places)
44
mvn versions:commit
55
mvn clean deploy -P release
66

karate-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010

1111
<artifactId>karate-demo</artifactId>

karate-jersey/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-jersey</artifactId>
1111
<packaging>jar</packaging>

karate-junit4/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-junit4</artifactId>
1111
<packaging>jar</packaging>

karate-testng/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.intuit.karate</groupId>
77
<artifactId>karate-parent</artifactId>
8-
<version>0.4.1</version>
8+
<version>0.4.2</version>
99
</parent>
1010
<artifactId>karate-testng</artifactId>
1111
<packaging>jar</packaging>

0 commit comments

Comments
 (0)