Skip to content

CLI: --save/--dir doesn't work when --exit is specified #656

Closed
@jorupp

Description

@jorupp

Product: cli

Expectation: Should be able to use --exit and --save/--dir on the same call.

Actual: When both are specified, --exit works, but --save/--dir seems to be ignored.

Motivation: As part of my CI process, I'd like to have axe fail my build, but still get the detailed JSON file to include in reports.


axe-core version: 4.6.1
@axe-core/cli: 4.6.0

- Node version: 18.12.1
- Platform:  Windows

This doesn't write file.json:

axe https://google.com --save file.json --exit

This writes file.json:

axe https://google.com --save file.json

Metadata

Metadata

Assignees

Labels

PACKAGE: cliPRIORITY: lowLow priority item; can be placed in backlogTYPE: prod bugBug that was found internally in prod (not affecting customer currently)in sprintTicket is in current sprint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions