Skip to content

Releases: lpelypenko/axe-html-reporter

Added return of HTML file content and option to stop html file creation

13 Sep 04:54
Compare
Choose a tag to compare

New feature that opens more usages of this library:

From version 2.2.3, createHtmlReport(...) returns HTML content that can be additionally used for specific integrations.

If only HTML content is needed, user can pass doNotCreateReportFile: true to stop report file creation.

Suggestion on how to use this library if you don't need a report file but need only HTML it produces:

const reportHTML = createHtmlReport({
    results: rawAxeResults,
    options: {
        projectKey: 'I need only raw HTML',
        doNotCreateReportFile: true,
    },
});
console.log('reportHTML will have full content of HTML file.');
// suggestion on how to create file by yourself
if (!fs.existsSync('build/reports/saveReportHere.html')) {
    fs.mkdirSync('build/reports', {
        recursive: true,
    });
}
fs.writeFileSync('build/reports/saveReportHere.html', reportHTML);

Allow absolute path option

21 May 13:16
Compare
Choose a tag to compare

New optional param was introduced to allow absolute path:

outputDirPath

    createHtmlReport({
        results: 'AxeResults',
        options: {
            projectKey: 'JIRA_PROJECT_KEY',
            outputDir: 'axe-reports',
            outputDirPath: '../..',
            reportFileName: 'exampleReport.html',
        },
    });

Add raw axe tags and extended WCAG with sub-sections

03 Jan 06:54
3b93c5d
Compare
Choose a tag to compare

Added raw tags returned from axe into details
image

Added subsections of WCAG, e.g WCAG 2.5.3 in the summary table
image

Improved Violations(Failed) section

24 Dec 09:13
50e4ca2
Compare
Choose a tag to compare

Added To solve this violation, you need to... section and highlight for HTML and XPath:

Screen Shot 2020-12-24 at 17 49 39

Added anchor for the violations by violation type ID for fast navigation in case of many violations
Screen Shot 2020-12-24 at 17 49 06

2.0.0 Full AxeResults object and Rules in report

29 Oct 07:08
5a69da4
Compare
Choose a tag to compare

New release contains major change that affects createHtmlReport function signature.

  • createHtmlReport now accepts full AxeResult object in results parameter
  • all other options moved to options parameter that is optional
  • axeResult rules object is now included in HTML report

Published missing dist files

22 Oct 10:16
Compare
Choose a tag to compare
1.2.1

Added support of customSummary, updated tests and docs

Added custom summary support (optional)

22 Oct 08:40
Compare
Choose a tag to compare

If use passed customSummary it will appear bellow Page URL:

        const customSummary = `Test Case: Full page analysis
        <br>Steps:</br>
        <ol style="margin: 0">
        <li>Open https://dequeuniversity.com/demo/mars/</li>
        <li>Analyze full page with all rules enabled</li>
        </ol>`;
        createHtmlReport({
            violations: axeRawViolations,
            url: 'https://dequeuniversity.com/demo/mars/',
            customSummary
        });

Added inapplicable axe result support

22 Oct 03:55
Compare
Choose a tag to compare
  • Added inapplicable axe result support
  • Improved logic
  • Added more tests

1.0.0

14 Oct 04:59
Compare
Choose a tag to compare