Skip to content

Commit 4527d7a

Browse files
jcundilllgandecki
authored andcommitted
fix: Remove the text/plain attachment embedded in the cucumber report when an error is thrown. (#222)
Adds no value and crashes on non latin text.
1 parent fc14b44 commit 4527d7a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/cukejson/cucumberDataCollector.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,10 @@ class CucumberDataCollector {
7070
duration: this.timeTaken()
7171
};
7272
} else {
73-
const attachment = {
74-
index: this.currentStep,
75-
testCase: this.formatTestCase(this.currentScenario),
76-
data: btoa(err.message.toString()),
77-
media: { type: "text/plain" }
78-
};
7973
this.stepResults[this.currentStep] = {
8074
status: statuses.FAILED,
8175
duration: this.timeTaken(),
82-
exception: this.testError,
83-
attachment
76+
exception: this.testError
8477
};
8578
}
8679
this.onFinishScenario(this.currentScenario);

0 commit comments

Comments
 (0)