html-reporter 10.1.0 → 10.2.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/build/lib/types.d.ts
CHANGED
|
@@ -38,6 +38,12 @@ export interface ImageFile {
|
|
|
38
38
|
path: string;
|
|
39
39
|
size: ImageSize;
|
|
40
40
|
}
|
|
41
|
+
export interface RefImageFile extends ImageFile {
|
|
42
|
+
/**
|
|
43
|
+
* @note defined if testplane >= 8.13.0
|
|
44
|
+
*/
|
|
45
|
+
relativePath?: string;
|
|
46
|
+
}
|
|
41
47
|
export interface ImageBuffer {
|
|
42
48
|
buffer: Buffer;
|
|
43
49
|
}
|
|
@@ -53,6 +59,9 @@ export interface DiffOptions extends LooksSameOptions {
|
|
|
53
59
|
export interface TestError {
|
|
54
60
|
name: string;
|
|
55
61
|
message: string;
|
|
62
|
+
/**
|
|
63
|
+
* @note defined if testplane >= 8.11.0
|
|
64
|
+
*/
|
|
56
65
|
snippet?: string;
|
|
57
66
|
stack?: string;
|
|
58
67
|
stateName?: string;
|
|
@@ -62,23 +71,35 @@ export interface TestError {
|
|
|
62
71
|
export interface ImageInfoDiff {
|
|
63
72
|
status: TestStatus.FAIL;
|
|
64
73
|
stateName: string;
|
|
65
|
-
|
|
74
|
+
/**
|
|
75
|
+
* @note Ref image is absent in pwt test results
|
|
76
|
+
*/
|
|
77
|
+
refImg?: RefImageFile;
|
|
66
78
|
diffClusters?: CoordBounds[];
|
|
67
79
|
expectedImg: ImageFile;
|
|
68
80
|
actualImg: ImageFile;
|
|
69
81
|
diffImg?: ImageFile | ImageBuffer;
|
|
70
82
|
diffOptions: DiffOptions;
|
|
83
|
+
/**
|
|
84
|
+
* @note defined if hermione >= 8.2.0
|
|
85
|
+
*/
|
|
71
86
|
differentPixels?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @note defined if hermione >= 8.2.0
|
|
89
|
+
*/
|
|
72
90
|
diffRatio?: number;
|
|
73
91
|
}
|
|
74
92
|
interface AssertViewSuccess {
|
|
75
93
|
stateName: string;
|
|
76
|
-
refImg:
|
|
94
|
+
refImg: RefImageFile;
|
|
77
95
|
}
|
|
78
96
|
export interface ImageInfoSuccess {
|
|
79
97
|
status: TestStatus.SUCCESS;
|
|
80
98
|
stateName: string;
|
|
81
|
-
|
|
99
|
+
/**
|
|
100
|
+
* @note Ref image is absent in pwt test results
|
|
101
|
+
*/
|
|
102
|
+
refImg?: RefImageFile;
|
|
82
103
|
diffClusters?: CoordBounds[];
|
|
83
104
|
expectedImg: ImageFile;
|
|
84
105
|
actualImg?: ImageFile;
|
|
@@ -95,13 +116,16 @@ export interface ImageInfoNoRef {
|
|
|
95
116
|
status: TestStatus.ERROR;
|
|
96
117
|
error?: TestError;
|
|
97
118
|
stateName: string;
|
|
98
|
-
|
|
119
|
+
/**
|
|
120
|
+
* @note Ref image is absent in pwt test results
|
|
121
|
+
*/
|
|
122
|
+
refImg?: RefImageFile;
|
|
99
123
|
actualImg: ImageFile;
|
|
100
124
|
}
|
|
101
125
|
export interface ImageInfoUpdated {
|
|
102
126
|
status: TestStatus.UPDATED;
|
|
103
127
|
stateName: string;
|
|
104
|
-
refImg:
|
|
128
|
+
refImg: RefImageFile;
|
|
105
129
|
actualImg: ImageFile;
|
|
106
130
|
expectedImg: ImageFile;
|
|
107
131
|
}
|
package/build/package.json
CHANGED