Skip to content

Commit

Permalink
some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Oct 27, 2023
1 parent 0b66623 commit d586db2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ module.exports = (config) => {
await _publishResultsToTestrail();
});

event.dispatcher.on(event.all.result, async () => {
if (!process.env.RUN_WITH_WORKERS) await _publishResultsToTestrail();
});

async function _publishResultsToTestrail() {
const mergedTests = [...failedTests, ...passedTests, ...skippedTest]

Expand Down Expand Up @@ -341,7 +345,7 @@ module.exports = (config) => {
} else {
output.log('There is no TC, hence no test run is created');
}
};
}

return this;
};
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { exec } = require('child_process');
const { expect } = require('chai');
const runner = './node_modules/.bin/codeceptjs run-worker 2';
const runner = './node_modules/.bin/codeceptjs run';
const mockTestrailConfig = './test/config/mock.testrail.js';
const testrailPlugin = require('../index.js');

Expand Down

0 comments on commit d586db2

Please sign in to comment.