html-reporter 9.3.1 → 9.4.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/CHANGELOG.md +2690 -2679
- package/README.md +684 -684
- package/lib/constants/view-modes.js +4 -1
- package/lib/gui/tool-runner/index.js +2 -10
- package/lib/static/components/controls/common-controls.js +0 -5
- package/lib/static/components/gui.js +0 -2
- package/lib/static/components/header/index.js +15 -15
- package/lib/static/components/report.js +0 -2
- package/lib/static/components/suites.js +2 -2
- package/lib/static/gui.min.js +15 -15
- package/lib/static/modules/action-names.js +1 -3
- package/lib/static/modules/actions.js +1 -12
- package/lib/static/modules/default-state.js +0 -1
- package/lib/static/modules/middlewares/local-storage.js +0 -1
- package/lib/static/modules/middlewares/metrika.js +1 -3
- package/lib/static/modules/reducers/grouped-tests/index.js +1 -2
- package/lib/static/modules/reducers/tree/index.js +1 -2
- package/lib/static/modules/reducers/tree/nodes/browsers.js +2 -2
- package/lib/static/modules/reducers/view.js +2 -13
- package/lib/static/modules/utils.js +13 -3
- package/lib/static/report.min.js +16 -16
- package/lib/test-adapter.js +1 -1
- package/lib/workers/worker.js +4 -2
- package/package.json +2 -3
- package/lib/static/components/skipped-list.js +0 -46
package/lib/test-adapter.js
CHANGED
|
@@ -377,7 +377,7 @@ module.exports = class TestAdapter {
|
|
|
377
377
|
return result;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
//parallelize and cache of '
|
|
380
|
+
//parallelize and cache of 'looks-same.createDiff' (because it is very slow)
|
|
381
381
|
async _saveDiffInWorker(imageDiffError, destPath, workers, cacheDiffImages = globalCacheDiffImages) {
|
|
382
382
|
await utils.makeDirFor(destPath);
|
|
383
383
|
|
package/lib/workers/worker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const looksSame = require('looks-same');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
/**
|
|
@@ -8,6 +8,8 @@ module.exports = {
|
|
|
8
8
|
* @param {String} diffPath
|
|
9
9
|
*/
|
|
10
10
|
saveDiffTo: function(imageDiffError, diffPath) {
|
|
11
|
-
|
|
11
|
+
const {diffColor: highlightColor, ...otherOpts} = imageDiffError.diffOpts;
|
|
12
|
+
|
|
13
|
+
return looksSame.createDiff({diff: diffPath, highlightColor, ...otherOpts});
|
|
12
14
|
}
|
|
13
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-reporter",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Plugin for hermione which is intended to aggregate the results of tests running into html report",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"coverage": "nyc npm run test-unit",
|
|
@@ -55,12 +55,11 @@
|
|
|
55
55
|
"filesize": "^8.0.6",
|
|
56
56
|
"fs-extra": "^7.0.1",
|
|
57
57
|
"gemini-configparser": "^1.0.0",
|
|
58
|
-
"gemini-core": "^6.3.2",
|
|
59
58
|
"http-codes": "1.0.0",
|
|
60
59
|
"inquirer": "^8.2.0",
|
|
61
60
|
"json-stringify-safe": "^5.0.1",
|
|
62
61
|
"lodash": "^4.17.4",
|
|
63
|
-
"looks-same": "^
|
|
62
|
+
"looks-same": "^8.0.0",
|
|
64
63
|
"nested-error-stacks": "^2.1.0",
|
|
65
64
|
"opener": "^1.4.3",
|
|
66
65
|
"ora": "^5.4.1",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import React, {Component} from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import Parser from 'html-react-parser';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import {connect} from 'react-redux';
|
|
8
|
-
|
|
9
|
-
class SkippedList extends Component {
|
|
10
|
-
static propTypes = {
|
|
11
|
-
showSkipped: PropTypes.bool.isRequired,
|
|
12
|
-
skips: PropTypes.array.isRequired
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
render() {
|
|
16
|
-
const {showSkipped, skips} = this.props;
|
|
17
|
-
const collapsed = !showSkipped;
|
|
18
|
-
const className = classNames('skipped__list', {collapsed});
|
|
19
|
-
|
|
20
|
-
const skipsTmpl = skips.length > 0
|
|
21
|
-
? this._drawSkips(skips)
|
|
22
|
-
: 'There are no skipped tests';
|
|
23
|
-
|
|
24
|
-
return (<div className={className}>{skipsTmpl}</div>);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
_drawSkips(skips) {
|
|
28
|
-
return skips.map((skip, index) => {
|
|
29
|
-
const {browser, comment, suite} = skip;
|
|
30
|
-
return (
|
|
31
|
-
<div key={index} className="skipped-test">
|
|
32
|
-
<span className="skipped-test__title">{suite}</span> > {browser}
|
|
33
|
-
{comment && ' reason: '}
|
|
34
|
-
{comment && Parser(comment)}
|
|
35
|
-
</div>
|
|
36
|
-
);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default connect(
|
|
42
|
-
(state) => ({
|
|
43
|
-
showSkipped: state.view.showSkipped,
|
|
44
|
-
skips: state.skips
|
|
45
|
-
})
|
|
46
|
-
)(SkippedList);
|