Skip to content

Commit ccf56eb

Browse files
authored
Add remote links flag to the summary (#382)
1 parent 4b3e14b commit ccf56eb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

packages/plugin-allure2/src/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export class Allure2Plugin implements Plugin {
116116
status: worstStatus ?? "passed",
117117
duration,
118118
createdAt,
119+
withTestResultsLinks: true,
119120
plugin: "Allure2",
120121
newTests: newTrs.map(convertToSummaryTestResult),
121122
flakyTests: flakyTrs.map(convertToSummaryTestResult),

packages/plugin-api/src/plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export interface PluginSummary {
5555
status: TestStatus;
5656
duration: number;
5757
plugin?: string;
58+
/**
59+
* Marks the summary as containing remote test results links (e.g. to new, flaky and retry tests)
60+
* Enable for plugins that support direct test results opening (like awesome or classic)
61+
*/
62+
withTestResultsLinks?: boolean;
5863
newTests?: SummaryTestResult[];
5964
flakyTests?: SummaryTestResult[];
6065
retryTests?: SummaryTestResult[];

packages/plugin-awesome/src/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export class AwesomePlugin implements Plugin {
164164
status: worstStatus ?? "passed",
165165
duration,
166166
createdAt,
167+
withTestResultsLinks: true,
167168
plugin: "Awesome",
168169
newTests: newTrs.map(convertToSummaryTestResult),
169170
flakyTests: flakyTrs.map(convertToSummaryTestResult),

packages/plugin-classic/src/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export class ClassicPlugin implements Plugin {
123123
status: worstStatus ?? "passed",
124124
createdAt,
125125
duration,
126+
withTestResultsLinks: true,
126127
plugin: "Classic",
127128
newTests: newTrs.map(convertToSummaryTestResult),
128129
flakyTests: flakyTrs.map(convertToSummaryTestResult),

0 commit comments

Comments
 (0)