Skip to content

Commit

Permalink
fix: Enable html support for test outputs (#1684)
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <sheche@microsoft.com>
  • Loading branch information
jdneo committed Apr 23, 2024
1 parent a30b06e commit 4f180dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runners/junitRunner/JUnitRunnerResultAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class JUnitRunnerResultAnalyzer extends RunnerResultAnalyzer {
} else if (data.startsWith(MessageId.TraceStart)) {
this.traces = new MarkdownString();
this.traces.isTrusted = true;
this.traces.supportHtml = true;
this.recordingType = RecordingType.StackTrace;
} else if (data.startsWith(MessageId.TraceEnd)) {
if (!this.tracingItem) {
Expand Down
2 changes: 1 addition & 1 deletion src/runners/testngRunner/TestNGRunnerResultAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class TestNGRunnerResultAnalyzer extends RunnerResultAnalyzer {
if (outputData.attributes.trace) {
const markdownTrace: MarkdownString = new MarkdownString();
markdownTrace.isTrusted = true;

markdownTrace.supportHtml = true;
for (const line of outputData.attributes.trace.split(/\r?\n/)) {
this.processStackTrace(line, markdownTrace, this.currentItem, this.projectName);
}
Expand Down

0 comments on commit 4f180dc

Please sign in to comment.