From 81d813f5c5453846749e1b3769af9ccf315d0690 Mon Sep 17 00:00:00 2001 From: Anudeep Date: Wed, 21 Aug 2024 18:02:17 +0530 Subject: [PATCH] chore: default only failed suites --- src/targets/chat.js | 2 +- src/targets/slack.js | 2 +- src/targets/teams.js | 2 +- test/targets.chat.spec.js | 3 ++- test/targets.slack.spec.js | 3 ++- test/targets.teams.spec.js | 7 +++++-- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/targets/chat.js b/src/targets/chat.js index 3f85695..9720651 100644 --- a/src/targets/chat.js +++ b/src/targets/chat.js @@ -223,7 +223,7 @@ const default_inputs = { publish: 'test-summary', include_suites: true, max_suites: 10, - only_failures: false, + only_failures: true, include_failure_details: false, duration: '', metrics: [ diff --git a/src/targets/slack.js b/src/targets/slack.js index fc75cfe..46d521b 100644 --- a/src/targets/slack.js +++ b/src/targets/slack.js @@ -249,7 +249,7 @@ const default_inputs = { publish: 'test-summary', include_suites: true, max_suites: 10, - only_failures: false, + only_failures: true, include_failure_details: false, duration: '', metrics: [ diff --git a/src/targets/teams.js b/src/targets/teams.js index 9bd9255..91f9178 100644 --- a/src/targets/teams.js +++ b/src/targets/teams.js @@ -284,7 +284,7 @@ const default_inputs = { publish: 'test-summary', include_suites: true, max_suites: 10, - only_failures: false, + only_failures: true, include_failure_details: false, width: '', duration: '', diff --git a/test/targets.chat.spec.js b/test/targets.chat.spec.js index 32d77f5..5aca9a3 100644 --- a/test/targets.chat.spec.js +++ b/test/targets.chat.spec.js @@ -174,7 +174,8 @@ describe('targets - chat - performance', () => { { "name": "chat", "inputs": { - "url": "http://localhost:9393/message" + "url": "http://localhost:9393/message", + "only_failures": false } } ], diff --git a/test/targets.slack.spec.js b/test/targets.slack.spec.js index cde94d2..276d170 100644 --- a/test/targets.slack.spec.js +++ b/test/targets.slack.spec.js @@ -200,7 +200,8 @@ describe('targets - slack - performance', () => { { "name": "slack", "inputs": { - "url": "http://localhost:9393/message" + "url": "http://localhost:9393/message", + "only_failures": false } } ], diff --git a/test/targets.teams.spec.js b/test/targets.teams.spec.js index 116c550..fb77ffd 100644 --- a/test/targets.teams.spec.js +++ b/test/targets.teams.spec.js @@ -257,7 +257,8 @@ describe('targets - teams - performance', () => { { "name": "teams", "inputs": { - "url": "http://localhost:9393/message" + "url": "http://localhost:9393/message", + "only_failures": false } } ], @@ -282,7 +283,8 @@ describe('targets - teams - performance', () => { { "name": "teams", "inputs": { - "url": "http://localhost:9393/message" + "url": "http://localhost:9393/message", + "only_failures": false } } ], @@ -382,6 +384,7 @@ describe('targets - teams - performance', () => { "name": "teams", "inputs": { "url": "http://localhost:9393/message", + "only_failures": false, "metrics": [ { "name": "Samples",