Skip to content

Commit

Permalink
add reportID to report config
Browse files Browse the repository at this point in the history
  • Loading branch information
garris committed Nov 11, 2017
1 parent f3260d2 commit 92a1239
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/command/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function writeBrowserReport (config, reporter) {
}
logger.log('Writing browser report');
return fs.copy(config.comparePath, toAbsolute(config.html_report)).then(function () {
logger.log('Browser reported copied');
logger.log('Resources copied');

// Fixing URLs in the configuration
var report = toAbsolute(config.html_report);
Expand Down
1 change: 1 addition & 0 deletions core/util/compare/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ module.exports = function (config) {
var compareConfig = require(config.tempCompareConfigFileName).compareConfig;
var report = new Reporter(config.ciReport.testSuiteName);
var asyncCompareLimit = config.asyncCompareLimit || ASYNC_COMPARE_LIMIT;
report.id = config.id;

return map(compareConfig.testPairs, pair => comparePair(pair, report, config), {concurrency: asyncCompareLimit})
.then(
Expand Down
8 changes: 8 additions & 0 deletions core/util/createBitmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ function flatMapTestPairs (rawTestPairs) {
var testPairs = result.testPairs;
if (!testPairs) {
testPairs = {
diff: {
isSameDimensions: '',
dimensionDifference: {
width: '',
height: ''
},
misMatchPercentage: ''
},
reference: '',
test: '',
selector: '',
Expand Down
1 change: 1 addition & 0 deletions core/util/extendConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function extendConfig (config, userConfig) {
casper(config, userConfig);
engine(config, userConfig);

config.id = userConfig.id;
config.engine = userConfig.engine || null;
config.report = userConfig.report || ['browser'];
config.defaultMisMatchThreshold = 0.1;
Expand Down

0 comments on commit 92a1239

Please sign in to comment.