Skip to content

How do I have Axe.core run only on the first iteration of s SiteSpeed test? #4481

@Myvryn

Description

@Myvryn

I run a suite of SiteSpeed tests regularly, and the Axe.Core tests are crucial for gathering information. However, since these tests take a long time and their results don't vary between iterations, I want to run them only during the first iteration.

Attempts:

1. Setting the enabled flag in PreScript and PostScript:

if (context.index === 1) {
    context.options.axe = { enable: true, tags: "wcag22aa" };
} else {
    context.options.axe = { enable: false };
}

This approach didn't work because the Axe tests run before the PostScript and seemed to have no effect on whether the test runs or not in the prescript.

2. Using the code with and without the --axe.enable flag in the Docker command:

If --axe.enable isn't included in the Docker command, the Axe tests don't run at all, regardless of the PreScript settings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions