From 6c605dc0b0610dd4b98d934e59d16b05ded8e729 Mon Sep 17 00:00:00 2001 From: Maciej Lewkowicz Date: Fri, 22 Mar 2019 11:15:06 +0100 Subject: [PATCH] Update report format to a more readable one --- lib/reporter.js | 6 +++--- test/unit/lib/reporter.js | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/reporter.js b/lib/reporter.js index fd56890..a4970e4 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -15,9 +15,9 @@ report.results = results => { results.issues.forEach(issue => { suite.testCase() - .className(issue.selector) - .name(issue.context) - .failure(issue.message); + .className(issue.code) + .name(`[${results.pageUrl}] ${issue.selector}`) + .failure(`${issue.message}\n\nContext: ${issue.context}`); }); return builder.build(); }; diff --git a/test/unit/lib/reporter.js b/test/unit/lib/reporter.js index 05a2368..b34206a 100644 --- a/test/unit/lib/reporter.js +++ b/test/unit/lib/reporter.js @@ -59,14 +59,14 @@ describe('lib/reporter', () => { - - + + - - + + - - + +