Skip to content

Commit 4f180dc

Browse files
authored
fix: Enable html support for test outputs (#1684)
Signed-off-by: Sheng Chen <[email protected]>
1 parent a30b06e commit 4f180dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/runners/junitRunner/JUnitRunnerResultAnalyzer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export class JUnitRunnerResultAnalyzer extends RunnerResultAnalyzer {
101101
} else if (data.startsWith(MessageId.TraceStart)) {
102102
this.traces = new MarkdownString();
103103
this.traces.isTrusted = true;
104+
this.traces.supportHtml = true;
104105
this.recordingType = RecordingType.StackTrace;
105106
} else if (data.startsWith(MessageId.TraceEnd)) {
106107
if (!this.tracingItem) {

src/runners/testngRunner/TestNGRunnerResultAnalyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class TestNGRunnerResultAnalyzer extends RunnerResultAnalyzer {
7777
if (outputData.attributes.trace) {
7878
const markdownTrace: MarkdownString = new MarkdownString();
7979
markdownTrace.isTrusted = true;
80-
80+
markdownTrace.supportHtml = true;
8181
for (const line of outputData.attributes.trace.split(/\r?\n/)) {
8282
this.processStackTrace(line, markdownTrace, this.currentItem, this.projectName);
8383
}

0 commit comments

Comments
 (0)