Skip to content

Commit

Permalink
3.0.2 - consider all step exceptions for scenario overview (#303)
Browse files Browse the repository at this point in the history
* added makefile

* consider all step exceptions
  • Loading branch information
bischoffdev authored Dec 22, 2022
1 parent 2551676 commit d8126a5
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Back to [Readme](README.md).

## [3.0.2] - 2022-12-22

### Fixed
* Exception message for non-given step was not shown in overview (#302)

## [3.0.1] - 2022-12-15

### Fixed
Expand Down Expand Up @@ -692,6 +697,7 @@ steps with status `pending` or `undefined` (default value is `false`) (#74)

Initial project version on GitHub and Maven Central.

[3.0.2]: https://github.com/trivago/cluecumber-report-plugin/tree/3.0.2
[3.0.1]: https://github.com/trivago/cluecumber-report-plugin/tree/3.0.1
[3.0.0]: https://github.com/trivago/cluecumber-report-plugin/tree/3.0.0
[2.9.4]: https://github.com/trivago/cluecumber-report-plugin/tree/2.9.4
Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>cluecumber-core</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>jar</packaging>

<parent>
<artifactId>cluecumber-parent</artifactId>
<groupId>com.trivago.rta</groupId>
<version>3.0.1</version>
<version>3.0.2</version>
</parent>

<name>Cluecumber Core</name>
Expand Down
4 changes: 2 additions & 2 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<parent>
<artifactId>cluecumber-parent</artifactId>
<groupId>com.trivago.rta</groupId>
<version>3.0.1</version>
<version>3.0.2</version>
</parent>

<artifactId>cluecumber-engine</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>jar</packaging>

<name>Cluecumber Engine</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,22 @@ public String getFirstExceptionClass() {

public String getFirstException() {
String exception = getResultListException(before);
if (exception != null){
if (exception != null && !exception.isEmpty()){
return exception;
}

exception = getStepException(backgroundSteps);
if (exception != null){
if (exception != null && !exception.isEmpty()){
return exception;
}

exception = getStepException(steps);
if (exception != null){
if (exception != null && !exception.isEmpty()){
return RenderingUtils.escapeHTML(exception);
}

exception = getResultListException(after);
if (exception != null){
if (exception != null && !exception.isEmpty()){
return exception;
}
return "";
Expand All @@ -312,17 +312,17 @@ public String getFirstException() {
private String getStepException(final List<Step> steps) {
for (Step step : steps) {
String exception = getResultListException(step.getBefore());
if (exception != null){
if (exception != null && !exception.isEmpty()){
return exception;
}

exception = step.getResult().getErrorMessage();
if (exception != null) {
if (exception != null && !exception.isEmpty()) {
return exception;
}

exception = getResultListException(step.getAfter());
if (exception != null){
if (exception != null && !exception.isEmpty()){
return exception;
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/core-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>blog.softwaretester</groupId>
<artifactId>core-example</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>pom</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion examples/maven-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>blog.softwaretester</groupId>
<artifactId>cluecumber-test-project</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>pom</packaging>

<properties>
Expand Down
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build-and-test:
mvn clean install
mvn verify -f=examples/maven-example
open examples/maven-example/target/cluecumber-report/index.html
4 changes: 2 additions & 2 deletions maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

<artifactId>cluecumber-maven</artifactId>
<packaging>maven-plugin</packaging>
<version>3.0.1</version>
<version>3.0.2</version>

<parent>
<artifactId>cluecumber-parent</artifactId>
<groupId>com.trivago.rta</groupId>
<version>3.0.1</version>
<version>3.0.2</version>
</parent>

<name>Cluecumber Maven</name>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>com.trivago.rta</groupId>
<artifactId>cluecumber-parent</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>pom</packaging>

<name>Cluecumber Parent</name>
Expand Down

0 comments on commit d8126a5

Please sign in to comment.