@testrelic/playwright-analytics 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-fixture.cjs +2 -0
- package/dist/api-fixture.cjs.map +1 -0
- package/dist/api-fixture.d.cts +25 -0
- package/dist/api-fixture.d.ts +25 -0
- package/dist/api-fixture.js +2 -0
- package/dist/api-fixture.js.map +1 -0
- package/dist/cli.cjs +41 -6
- package/dist/fixture.cjs +1 -1
- package/dist/fixture.cjs.map +1 -1
- package/dist/fixture.d.cts +47 -1
- package/dist/fixture.d.ts +47 -1
- package/dist/fixture.js +1 -1
- package/dist/fixture.js.map +1 -1
- package/dist/index.cjs +223 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +223 -66
- package/dist/index.js.map +1 -1
- package/dist/merge.cjs +1 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.js +1 -1
- package/dist/merge.js.map +1 -1
- package/package.json +23 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ReporterConfig, NavigationType } from '@testrelic/core';
|
|
2
|
-
export { CIMetadata, FailureDiagnostic, NavigationType, NetworkStats, ReporterConfig, Summary, TestResult, TestRunReport, TimelineEntry } from '@testrelic/core';
|
|
2
|
+
export { ATTACHMENT_CONTENT_TYPE, ATTACHMENT_NAME, ApiAssertion, ApiCallRecord, ApiCallStep, ApiCallStepRequest, ApiCallStepResponse, AssertionLocation, AssertionType, CIMetadata, FailureDiagnostic, NavigationStep, NavigationType, NetworkStats, PAYLOAD_VERSION, ReporterConfig, StepAssertion, StepTestIdentity, Summary, TestRelicDataPayload, TestResult, TestRunReport, TimelineEntry, TimelineStep, isTestRelicDataPayload } from '@testrelic/core';
|
|
3
|
+
export { testRelicFixture } from './fixture.cjs';
|
|
4
|
+
export { testRelicApiFixture } from './api-fixture.cjs';
|
|
5
|
+
import '@playwright/test';
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* TestRelicReporter — Playwright custom reporter
|
|
@@ -63,17 +66,18 @@ interface PwFullResult {
|
|
|
63
66
|
}
|
|
64
67
|
declare class TestRelicReporter {
|
|
65
68
|
private config;
|
|
69
|
+
private apiConfig;
|
|
66
70
|
private rootDir;
|
|
67
71
|
private startedAt;
|
|
68
72
|
private testRunId;
|
|
69
73
|
private collectedTests;
|
|
70
74
|
constructor(options?: Partial<ReporterConfig>);
|
|
71
75
|
onBegin(config: PwFullConfig, _suite: PwSuite): void;
|
|
76
|
+
onTestBegin(test: PwTestCase, _result: PwTestResult): void;
|
|
72
77
|
onTestEnd(test: PwTestCase, result: PwTestResult): void;
|
|
73
78
|
onEnd(_result: PwFullResult): void;
|
|
74
79
|
printsToStdio(): boolean;
|
|
75
80
|
private buildTimeline;
|
|
76
|
-
private buildSummary;
|
|
77
81
|
private toTestResult;
|
|
78
82
|
private writeReport;
|
|
79
83
|
}
|
|
@@ -81,7 +85,7 @@ declare class TestRelicReporter {
|
|
|
81
85
|
/**
|
|
82
86
|
* JSON schema version for the analytics timeline output.
|
|
83
87
|
*/
|
|
84
|
-
declare const SCHEMA_VERSION = "1.
|
|
88
|
+
declare const SCHEMA_VERSION = "1.3.0";
|
|
85
89
|
|
|
86
90
|
/**
|
|
87
91
|
* @testrelic/playwright-analytics — Main entry point
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ReporterConfig, NavigationType } from '@testrelic/core';
|
|
2
|
-
export { CIMetadata, FailureDiagnostic, NavigationType, NetworkStats, ReporterConfig, Summary, TestResult, TestRunReport, TimelineEntry } from '@testrelic/core';
|
|
2
|
+
export { ATTACHMENT_CONTENT_TYPE, ATTACHMENT_NAME, ApiAssertion, ApiCallRecord, ApiCallStep, ApiCallStepRequest, ApiCallStepResponse, AssertionLocation, AssertionType, CIMetadata, FailureDiagnostic, NavigationStep, NavigationType, NetworkStats, PAYLOAD_VERSION, ReporterConfig, StepAssertion, StepTestIdentity, Summary, TestRelicDataPayload, TestResult, TestRunReport, TimelineEntry, TimelineStep, isTestRelicDataPayload } from '@testrelic/core';
|
|
3
|
+
export { testRelicFixture } from './fixture.js';
|
|
4
|
+
export { testRelicApiFixture } from './api-fixture.js';
|
|
5
|
+
import '@playwright/test';
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* TestRelicReporter — Playwright custom reporter
|
|
@@ -63,17 +66,18 @@ interface PwFullResult {
|
|
|
63
66
|
}
|
|
64
67
|
declare class TestRelicReporter {
|
|
65
68
|
private config;
|
|
69
|
+
private apiConfig;
|
|
66
70
|
private rootDir;
|
|
67
71
|
private startedAt;
|
|
68
72
|
private testRunId;
|
|
69
73
|
private collectedTests;
|
|
70
74
|
constructor(options?: Partial<ReporterConfig>);
|
|
71
75
|
onBegin(config: PwFullConfig, _suite: PwSuite): void;
|
|
76
|
+
onTestBegin(test: PwTestCase, _result: PwTestResult): void;
|
|
72
77
|
onTestEnd(test: PwTestCase, result: PwTestResult): void;
|
|
73
78
|
onEnd(_result: PwFullResult): void;
|
|
74
79
|
printsToStdio(): boolean;
|
|
75
80
|
private buildTimeline;
|
|
76
|
-
private buildSummary;
|
|
77
81
|
private toTestResult;
|
|
78
82
|
private writeReport;
|
|
79
83
|
}
|
|
@@ -81,7 +85,7 @@ declare class TestRelicReporter {
|
|
|
81
85
|
/**
|
|
82
86
|
* JSON schema version for the analytics timeline output.
|
|
83
87
|
*/
|
|
84
|
-
declare const SCHEMA_VERSION = "1.
|
|
88
|
+
declare const SCHEMA_VERSION = "1.3.0";
|
|
85
89
|
|
|
86
90
|
/**
|
|
87
91
|
* @testrelic/playwright-analytics — Main entry point
|