From cdf6bccc01c6213a65378c292f9a3e5484107351 Mon Sep 17 00:00:00 2001 From: Geoff Cooney Date: Thu, 14 Nov 2019 11:02:19 -0500 Subject: [PATCH] release v1.5 --- lib/index.js | 10 +++++----- lib/table.js | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/index.js b/lib/index.js index 826889e6..9c83f977 100644 --- a/lib/index.js +++ b/lib/index.js @@ -117,18 +117,18 @@ function run() { core.setOutput('plans_run', '' + finalExecutionResult.plan_execution_metrics.total); core.setOutput('plans_passed', '' + finalExecutionResult.plan_execution_metrics.passed); core.setOutput('plans_failed', '' + finalExecutionResult.plan_execution_metrics.failed); - core.setOutput('journeys_run', '' + finalExecutionResult.journey_execution_metrics.total); - core.setOutput('journeys_passed', '' + finalExecutionResult.journey_execution_metrics.passed); - core.setOutput('journeys_failed', '' + finalExecutionResult.journey_execution_metrics.failed); + core.setOutput('tests_run', '' + finalExecutionResult.journey_execution_metrics.total); + core.setOutput('tests_passed', '' + finalExecutionResult.journey_execution_metrics.passed); + core.setOutput('tests_failed', '' + finalExecutionResult.journey_execution_metrics.failed); if (finalExecutionResult.journey_execution_metrics.failed === 0) { core.debug('Deployment plans passed'); } else if (continueOnPlanFailure) { - core.warning(`There were ${finalExecutionResult.journey_execution_metrics.failed} journey failures but the continueOnPlanFailure flag is set so the task has been marked as passing`); + core.warning(`There were ${finalExecutionResult.journey_execution_metrics.failed} test failures but the continueOnPlanFailure flag is set so the task has been marked as passing`); // core.setNeutral(); Todo Set neutral when support is added to actions v2 } else { - core.setFailed(`${finalExecutionResult.journey_execution_metrics.failed} mabl Journey(s) failed`); + core.setFailed(`${finalExecutionResult.journey_execution_metrics.failed} mabl test(s) failed`); } } catch (err) { diff --git a/lib/table.js b/lib/table.js index 5cd5906a..ab59f208 100644 --- a/lib/table.js +++ b/lib/table.js @@ -32,8 +32,8 @@ function prettyPrintExecution(execution) { 'mabl App Link:', execution.plan.app_href, ]); - let journeyTable = new cli_table3_1.default({ - head: ['Browser', 'Status', 'Journey Name', 'Duration', 'mabl App Link'], + let testTable = new cli_table3_1.default({ + head: ['Browser', 'Status', 'Test Name', 'Duration', 'mabl App Link'], style: { head: [], border: [], @@ -42,17 +42,17 @@ function prettyPrintExecution(execution) { wordWrap: true, }); execution.journey_executions.forEach(jE => { - let journey = execution.journeys.find(journey => journey.id === jE.journey_id); - journeyTable.push([ + let test = execution.journeys.find(test => test.id === jE.journey_id); + testTable.push([ jE.browser_type, jE.success ? 'Passed' : 'Failed', - journey ? journey.name : jE.journey_id, + test ? test.name : jE.journey_id, moment.utc(jE.stop_time - jE.start_time).format('HH:mm:ss'), jE.app_href, ]); }); outputTable(planTable); - outputTable(journeyTable); + outputTable(testTable); } exports.prettyPrintExecution = prettyPrintExecution; function outputTable(table) {