Skip to content

Commit

Permalink
Prepare release 6.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Ramcharan committed Sep 26, 2024
1 parent efd42d5 commit 41dc2c0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
CHANGES IN VERSION 6.17.0
=================================
* [FIX] NullPointerException when resolving classpath feature URIs
* [FIX] Unable to create parent directories that are needed for the Courgette Json reporter
* [MAINTENANCE] Upgrade to Cucumber version 7.19.0

CHANGES IN VERSION 6.16.0
=================================
* [ENHANCEMENT] Include the number of scenarios in the results table of the Courgette html report.
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ Courgette-JVM is an extension of Cucumber-JVM with added capabilities to **run c
<dependency>
<groupId>io.github.prashant-ramcharan</groupId>
<artifactId>courgette-jvm</artifactId>
<version>6.16.0</version>
<version>6.17.0</version>
</dependency>
````

#### Gradle
````gradle
implementation group: 'io.github.prashant-ramcharan', name: 'courgette-jvm', version: '6.16.0'
implementation group: 'io.github.prashant-ramcharan', name: 'courgette-jvm', version: '6.17.0'
````

#### Included Cucumber Dependencies
* cucumber-core 7.18.1
* cucumber-java 7.18.1
* cucumber-java8 7.18.1
* cucumber-junit 7.18.1
* cucumber-testng 7.18.1
* cucumber-core 7.19.0
* cucumber-java 7.19.0
* cucumber-java8 7.19.0
* cucumber-junit 7.19.0
* cucumber-testng 7.19.0


## Usage
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.github.prashant-ramcharan'
version '6.16.0'
version '6.17.0'

apply plugin: 'java'
apply plugin: 'maven-publish'
Expand All @@ -12,7 +12,7 @@ compileJava {
}

ext {
cucumberVersion = '7.18.1'
cucumberVersion = '7.19.0'
testNGVersion = '7.9.0'
jacksonVersion = '2.17.0'
httpcomponentsVersion = '4.5.13'
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties

This file was deleted.

6 changes: 5 additions & 1 deletion src/main/java/courgette/runtime/CourgetteReportOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ public Optional<String> getRerunFile() {
}

public String getFeatureId() {
return Arrays.stream(feature.getUri().getPath().split("/")).reduce((x, y) -> y)
String featureUri = feature.getUri().getPath() == null ?
feature.getUri().toString() :
feature.getUri().getPath();

return Arrays.stream(featureUri.split("/")).reduce((x, y) -> y)
.orElse("").replace(".feature", "")
.toLowerCase();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/courgette/runtime/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ public static boolean createDirectory(File file) {
if (file.exists() && file.isDirectory()) {
return true;
}
return file.mkdir();
return file.mkdirs();
}

public static boolean createFile(File file) {
if (file.exists()) {
return true;
}
try {
file.getParentFile().mkdir();
createDirectory(file.getParentFile());
file.createNewFile();
return true;
} catch (IOException e) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/report/templates/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@
<div class="col-sm-7">
Cucumber Version:
</div>
<div>7.18.1</div>
<div>7.19.0</div>
</div>
<div class="row mt-4">
<div class="col-sm-7">
Courgette Version:
</div>
<div>6.16.0</div>
<div>6.17.0</div>
</div>
<div class="row mt-4">
<div><a href class="col-sm-9" data-toggle="modal" data-target="#environment_info">Additional
Expand Down

0 comments on commit 41dc2c0

Please sign in to comment.