html-reporter 9.18.0 → 9.19.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.
@@ -1,5 +1,5 @@
1
- import type Testplane from 'hermione';
2
- import type { Test as TestplaneTest } from 'hermione';
1
+ import type Testplane from 'testplane';
2
+ import type { Test as TestplaneTest } from 'testplane';
3
3
  import { ValueOf } from 'type-fest';
4
4
  import { TestStatus } from '../constants';
5
5
  import { ErrorDetails, TestplaneTestResult, ImageBase64, ImageInfoFull, TestError } from '../types';
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import type { LooksSameOptions, CoordBounds } from 'looks-same';
3
- import type { default as Testplane, TestResult } from 'hermione';
3
+ import type { default as Testplane, TestResult } from 'testplane';
4
4
  import { DiffModeId, SaveFormat, SUITES_TABLE_COLUMNS, TestStatus, ViewMode } from './constants';
5
5
  import type { HtmlReporter } from './plugin-api';
6
6
  import { ImageDiffError, NoRefImageError } from './errors';
7
7
  declare module 'tmp' {
8
8
  const tmpdir: string;
9
9
  }
10
- export { Suite as TestplaneSuite } from 'hermione';
10
+ export { Suite as TestplaneSuite } from 'testplane';
11
11
  export interface HermioneTestResult extends TestResult {
12
12
  timestamp?: number;
13
13
  }
@@ -53,6 +53,7 @@ export interface DiffOptions extends LooksSameOptions {
53
53
  export interface TestError {
54
54
  name: string;
55
55
  message: string;
56
+ snippet?: string;
56
57
  stack?: string;
57
58
  stateName?: string;
58
59
  details?: ErrorDetails;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "9.18.0",
3
+ "version": "9.19.0",
4
4
  "description": "Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.",
5
5
  "files": [
6
6
  "build"
@@ -59,17 +59,28 @@
59
59
  "homepage": "https://github.com/gemini-testing/html-reporter#readme",
60
60
  "license": "MIT",
61
61
  "peerDependencies": {
62
- "hermione": ">=6.0.0"
62
+ "hermione": ">=6.0.0",
63
+ "testplane": "*"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "hermione": {
67
+ "optional": true
68
+ },
69
+ "testplane": {
70
+ "optional": true
71
+ }
63
72
  },
64
73
  "dependencies": {
65
74
  "@babel/runtime": "^7.22.5",
66
75
  "@gemini-testing/sql.js": "^2.0.0",
76
+ "ansi-html-community": "^0.0.8",
67
77
  "axios": "1.6.3",
68
78
  "better-sqlite3": "^8.5.0",
69
79
  "bluebird": "^3.5.3",
70
80
  "body-parser": "^1.18.2",
71
81
  "chalk": "^4.1.2",
72
82
  "debug": "^4.1.1",
83
+ "escape-html": "^1.0.3",
73
84
  "eventemitter2": "6.4.7",
74
85
  "express": "^4.16.2",
75
86
  "fast-glob": "^3.2.12",
@@ -106,6 +117,7 @@
106
117
  "@types/chai": "^4.3.5",
107
118
  "@types/debug": "^4.1.8",
108
119
  "@types/enzyme": "^3.10.13",
120
+ "@types/escape-html": "^1.0.4",
109
121
  "@types/express": "4.16",
110
122
  "@types/fs-extra": "^7.0.0",
111
123
  "@types/http-codes": "^1.0.4",
@@ -139,7 +151,6 @@
139
151
  "eslint-plugin-react": "^7.32.2",
140
152
  "events": "^3.3.0",
141
153
  "fork-ts-checker-webpack-plugin": "^9.0.0",
142
- "hermione": "^8.2.1",
143
154
  "hermione-global-hook": "^1.0.1",
144
155
  "hermione-test-repeater": "^0.0.8",
145
156
  "html-react-parser": "^0.4.0",
@@ -194,6 +205,7 @@
194
205
  "stylus": "^0.57.0",
195
206
  "stylus-loader": "^7.1.3",
196
207
  "terser-webpack-plugin": "^5.3.9",
208
+ "testplane": "^0.1.0-rc.0",
197
209
  "tree-kill": "^1.2.2",
198
210
  "ts-node": "^10.9.1",
199
211
  "type-fest": "^3.13.1",
@@ -1,4 +1,4 @@
1
- import type Testplane from 'hermione';
1
+ import type Testplane from 'testplane';
2
2
  import { ReporterOptions } from './lib/types';
3
3
  declare const _default: (testplane: Testplane, opts: Partial<ReporterOptions>) => void;
4
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-reporter",
3
- "version": "9.18.0",
3
+ "version": "9.19.0",
4
4
  "description": "Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.",
5
5
  "files": [
6
6
  "build"
@@ -59,17 +59,28 @@
59
59
  "homepage": "https://github.com/gemini-testing/html-reporter#readme",
60
60
  "license": "MIT",
61
61
  "peerDependencies": {
62
- "hermione": ">=6.0.0"
62
+ "hermione": ">=6.0.0",
63
+ "testplane": "*"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "hermione": {
67
+ "optional": true
68
+ },
69
+ "testplane": {
70
+ "optional": true
71
+ }
63
72
  },
64
73
  "dependencies": {
65
74
  "@babel/runtime": "^7.22.5",
66
75
  "@gemini-testing/sql.js": "^2.0.0",
76
+ "ansi-html-community": "^0.0.8",
67
77
  "axios": "1.6.3",
68
78
  "better-sqlite3": "^8.5.0",
69
79
  "bluebird": "^3.5.3",
70
80
  "body-parser": "^1.18.2",
71
81
  "chalk": "^4.1.2",
72
82
  "debug": "^4.1.1",
83
+ "escape-html": "^1.0.3",
73
84
  "eventemitter2": "6.4.7",
74
85
  "express": "^4.16.2",
75
86
  "fast-glob": "^3.2.12",
@@ -106,6 +117,7 @@
106
117
  "@types/chai": "^4.3.5",
107
118
  "@types/debug": "^4.1.8",
108
119
  "@types/enzyme": "^3.10.13",
120
+ "@types/escape-html": "^1.0.4",
109
121
  "@types/express": "4.16",
110
122
  "@types/fs-extra": "^7.0.0",
111
123
  "@types/http-codes": "^1.0.4",
@@ -139,7 +151,6 @@
139
151
  "eslint-plugin-react": "^7.32.2",
140
152
  "events": "^3.3.0",
141
153
  "fork-ts-checker-webpack-plugin": "^9.0.0",
142
- "hermione": "^8.2.1",
143
154
  "hermione-global-hook": "^1.0.1",
144
155
  "hermione-test-repeater": "^0.0.8",
145
156
  "html-react-parser": "^0.4.0",
@@ -194,6 +205,7 @@
194
205
  "stylus": "^0.57.0",
195
206
  "stylus-loader": "^7.1.3",
196
207
  "terser-webpack-plugin": "^5.3.9",
208
+ "testplane": "^0.1.0-rc.0",
197
209
  "tree-kill": "^1.2.2",
198
210
  "ts-node": "^10.9.1",
199
211
  "type-fest": "^3.13.1",