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', () => { - - + + - - + + - - + +