slack-ctrf
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -65,3 +65,3 @@ #!/usr/bin/env node | ||
const report = (0, ctrf_parser_1.parseCtrfFile)(argv.path); | ||
yield (0, slack_reporter_1.sendTestResultsToSlack)(report, { title: argv.title, prefix: argv.prefix, suffix: argv.suffix }, true); | ||
yield (0, slack_reporter_1.sendTestResultsToSlack)(report, { title: argv.title, prefix: argv.prefix, suffix: argv.suffix, onFailOnly: argv.onFailOnly }, true); | ||
} | ||
@@ -68,0 +68,0 @@ catch (error) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
} | ||
if (options.onFailOnly && report.results.summary.failed === 0) { | ||
if (report.results.summary.failed === 0 && options.onFailOnly) { | ||
logs && console.log('No failed tests. Message not sent.'); | ||
@@ -24,0 +24,0 @@ return; |
{ | ||
"name": "slack-ctrf", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Send Slack notifications with test results from popular testing frameworks", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
49243