Skip to content

Commit

Permalink
fix: skipped state merge should affect branch statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
kvmamich committed Jun 7, 2019
1 parent 1dc627f commit 7c79494
Show file tree
Hide file tree
Showing 5 changed files with 1,353 additions and 221 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ hot

.idea
.vscode
.nyc_output
5 changes: 1 addition & 4 deletions lib/merge-reports/data-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require('path');
const _ = require('lodash');
const Promise = require('bluebird');
const fs = require('fs-extra');
const {isSkippedStatus} = require('../common-utils');
const {findNode, setStatusForBranch} = require('../static/modules/utils');
const {getDataFrom, getStatNameForStatus, getImagePaths} = require('./utils');

Expand Down Expand Up @@ -126,9 +125,7 @@ module.exports = class DataTree {
const statName = getStatNameForStatus(existentBro.result.status);
this._data[statName] += 1;

if (!isSkippedStatus(existentBro.result.status)) {
setStatusForBranch(this._data.suites, suitePath, existentBro.result.status);
}
setStatusForBranch(this._data.suites, suitePath, existentBro.result.status);
}

_mergeStatistics(node) {
Expand Down
Loading

0 comments on commit 7c79494

Please sign in to comment.