Skip to content

Commit

Permalink
[no ci] prep release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Aug 5, 2024
1 parent d73303c commit bb7ccce
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 36 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ For teams familiar with or currently using [REST-assured](http://rest-assured.io

## References
* [API Testing with Karate](https://youtu.be/WT4gg7Jutzg) - video + demos by [Peter Thomas](https://twitter.com/ptrthomas) (creator / lead dev of Karate)
* [Intro to all features of Karate](https://youtu.be/yu3uupBZyxc) - video + demos by [Peter Thomas](https://twitter.com/ptrthomas) (creator / lead dev of Karate)
* [Karate entered the ThoughtWorks Tech Radar](https://twitter.com/KarateDSL/status/1120985060843249664) in 2019 and was [upgraded in ranking](https://twitter.com/KarateDSL/status/1262719979104817152) in May 2020
* [Introducing Karate: The ULTIMATE Test Automation Tool](https://youtu.be/_kMxvd37auc?si=WOEkvEUH6eWeHZUC) - video by [James Willett](https://www.linkedin.com/in/willettjames/)
* [Karate in the ThoughtWorks Tech Radar](https://twitter.com/KarateDSL/status/1120985060843249664) and featured [a second time](https://twitter.com/KarateDSL/status/1262719979104817152)
* [マイクロサービスにおけるテスト自動化 with Karate](https://speakerdeck.com/takanorig/microservices-testing-automation-with-karate) - (*Microservices Test Automation with Karate*) presentation by [Takanori Suzuki](https://twitter.com/takanorig)
* [Writing API Tests with Karate](https://www.softwaretester.blog/writing-api-tests-with-karate) - book by [Benjamin Bischoff](https://www.softwaretester.blog/about), Packt Publishing, 2023
* [Karate Webinar](https://www.youtube.com/watch?v=cXDIYpT6zck&t=4333s) - Simplificando automação de API com Karate Framework by [Luana Assis](https://www.linkedin.com/in/luanapassis/) from [Base2 Tecnologia](https://www.base2.com.br/)
Expand All @@ -334,7 +334,7 @@ Karate also has a dedicated "tag", and a very active and supportive community at
You can find a lot more references, tutorials and blog-posts at [karatelabs.io](https://karatelabs.io).

# Getting Started
If you are a Java developer - Karate requires at least [Java](http://www.oracle.com/technetwork/java/javase/downloads/index.html) 11 and then either [Maven](http://maven.apache.org), [Gradle](https://gradle.org), or a Java IDE that embeds either to be installed. Note that Karate works fine on OpenJDK.
If you are a Java developer - Karate requires at least [Java](http://www.oracle.com/technetwork/java/javase/downloads/index.html) 17 and then either [Maven](http://maven.apache.org), [Gradle](https://gradle.org), or a Java IDE that embeds either to be installed. Note that Karate works fine on OpenJDK.

If you are new to programming or test-automation, the [official IntelliJ plugin](https://plugins.jetbrains.com/plugin/19232-karate) is recommended.

Expand All @@ -347,9 +347,9 @@ All you need is available in the [`karate-core`](https://search.maven.org/artifa

```xml
<dependency>
<groupId>com.intuit.karate</groupId>
<groupId>io.karatelabs</groupId>
<artifactId>karate-junit5</artifactId>
<version>1.4.1</version>
<version>1.5.0</version>
<scope>test</scope>
</dependency>
```
Expand All @@ -358,7 +358,7 @@ All you need is available in the [`karate-core`](https://search.maven.org/artifa
Alternatively for [Gradle](https://gradle.org):

```yml
testCompile 'com.intuit.karate:karate-junit5:1.4.1'
testCompile 'io.karatelabs:karate-junit5:1.5.0'
```

Also refer to the wiki for using [Karate with Gradle](https://github.com/karatelabs/karate/wiki/Gradle).
Expand All @@ -372,7 +372,7 @@ For example when using Maven:

```xml
<dependency>
<groupId>com.intuit.karate</groupId>
<groupId>io.karatelabs</groupId>
<artifactId>karate-core</artifactId>
<version>${karate.version}</version>
<classifier>all</classifier>
Expand All @@ -391,9 +391,9 @@ You can replace the values of `com.mycompany` and `myproject` as per your needs.

```
mvn archetype:generate \
-DarchetypeGroupId=com.intuit.karate \
-DarchetypeGroupId=io.karatelabs \
-DarchetypeArtifactId=karate-archetype \
-DarchetypeVersion=1.4.1 \
-DarchetypeVersion=1.5.0 \
-DgroupId=com.mycompany \
-DartifactId=myproject
```
Expand Down Expand Up @@ -444,9 +444,6 @@ With the above in place, you don't have to keep switching between your `src/test

Once you get used to this, you may even start wondering why projects need a `src/test/resources` folder at all !

### Spring Boot Example
[Soumendra Daas](https://twitter.com/sdaas) has created a nice example and guide that you can use as a reference here: [`hello-karate`](https://github.com/Sdaas/hello-karate). This demonstrates a Java Maven + JUnit 5 project set up to test a [Spring Boot](http://projects.spring.io/spring-boot/) app.

## Naming Conventions
Since these are tests and not production Java code, you don't need to be bound by the `com.mycompany.foo.bar` convention and the un-necessary explosion of sub-folders that ensues. We suggest that you have a folder hierarchy only one or two levels deep - where the folder names clearly identify which 'resource', 'entity' or API is the web-service under test.

Expand Down
2 changes: 1 addition & 1 deletion examples/consumer-driven-contracts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<spring.boot.version>3.2.2</spring.boot.version>
<junit5.version>5.7.0</junit5.version>
<java.version>17</java.version>
<karate.version>1.5.0.RC3</karate.version>
<karate.version>1.5.0</karate.version>
</properties>

<dependencies>
Expand Down
2 changes: 2 additions & 0 deletions examples/gatling/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# karate-gatling-demo
demo sample project for karate [test-doubles](https://github.com/karatelabs/karate/tree/master/karate-netty) and [gatling integration](https://github.com/karatelabs/karate/tree/master/karate-gatling)

> Another example which demos the use of the Java DSL instead of Scala can be found here: [karate-todo](https://github.com/karatelabs/karate-todo).
## Instructions

```
Expand Down
2 changes: 1 addition & 1 deletion examples/gatling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

ext {
karateVersion = '1.5.0.RC1'
karateVersion = '1.5.0'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion examples/gatling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.6.0</maven.compiler.version>
<!-- please change this when running locally -->
<karate.version>${project.version}</karate.version>
Expand Down
4 changes: 2 additions & 2 deletions examples/image-comparison/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<karate.version>1.4.1</karate.version>
<karate.version>1.5.0</karate.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/mobile-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
<karate.version>1.4.1</karate.version>
Expand Down
4 changes: 2 additions & 2 deletions examples/profiling-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.6.0</maven.compiler.version>
<karate.version>1.4.1</karate.version>
<karate.version>1.5.0</karate.version>
<gatling.plugin.version>4.1.1</gatling.plugin.version>
</properties>

Expand Down
6 changes: 3 additions & 3 deletions examples/robot-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
<karate.version>1.4.1</karate.version>
<karate.version>1.5.0</karate.version>
</properties>

<dependencies>
Expand All @@ -23,7 +23,7 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.intuit.karate</groupId>
<groupId>io.karatelabs</groupId>
<artifactId>karate-junit5</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
Expand Down
4 changes: 2 additions & 2 deletions examples/ui-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<maven.compiler.version>3.6.0</maven.compiler.version>
<karate.version>1.4.1</karate.version>
<karate.version>1.5.0</karate.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion jbang-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"catalogs": {},
"aliases": {
"karate": {
"script-ref": "io.karatelabs:karate-core:1.5.0.RC1:all"
"script-ref": "io.karatelabs:karate-core:1.5.0:all"
}
}
}
2 changes: 1 addition & 1 deletion karate-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-archetype</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<java.version>11</java.version>
<maven.compiler.version>3.11.0</maven.compiler.version>
<maven.surefire.version>3.0.0</maven.surefire.version>
<karate.version>1.5.0.RC1</karate.version>
<karate.version>1.5.0</karate.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion karate-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-core</artifactId>
<packaging>jar</packaging>
Expand Down
4 changes: 4 additions & 0 deletions karate-core/src/test/resources/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ mvn versions:set versions:commit -DnewVersion=@@@

(save the sonatype report)

jbang
=====
# edit https://github.com/karatelabs/jbang-catalog

release radar
=============
https://github.com/github/release-radar/issues/new?assignees=MishManners&labels=&template=release-radar-request.yml&title=%5BRelease+Radar+Request%5D+%3Ctitle%3E
Expand Down
2 changes: 1 addition & 1 deletion karate-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>

<artifactId>karate-demo</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion karate-e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-e2e-tests</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-gatling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-gatling</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-junit5</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion karate-playwright/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>

<artifactId>karate-playwright</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion karate-robot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
</parent>
<artifactId>karate-robot</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.karatelabs</groupId>
<artifactId>karate-parent</artifactId>
<version>1.6.0-SNAPSHOT</version>
<version>1.5.0</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down

0 comments on commit bb7ccce

Please sign in to comment.