Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Audit in a build

Run izzy audit in a build to catch a problem when it is added, not months later. The build can fail on any finding, on real ones, or only on those a change brought in.

Fail a build on findings

With --fail-on any, izzy ends with exit code 5 when the page has a finding. When the page has none and a load didn't open or answered with an error, it ends with exit code 1. On a build server, start the app with --run:

bash
izzy audit / --run --fail-on any

The build server needs Chrome, Edge or Chromium. If izzy doesn't find one, set --browser or the IZZY_BROWSER variable to its path.

Fail on real findings

With a free account, --fail-on real ends with exit code 5 only when a finding's verdict is real. False positives, demo pages and the findings you accepted in .izzy/audit.json don't fail the build. Neither do the findings that need a person: they are in the report and the task list for someone to look at.

A build server signs in with a key in the IZZY_KEY variable: see Your account. A key gives a build what a free account has: one page a run. --site and --urls need a sign-in with Pro.

Fail only on new findings

To stop new findings on a site that already has some, keep a past run's results.json in the repository and compare with it:

bash
izzy audit / --run --baseline audit-baseline.json --fail-on new

A real finding the baseline lacks is new, and only those fail the build. The report says how many are new and how many are fixed, and tasks.md checks off the fixed ones. Remake the baseline when the old findings are fixed.

Code scanning

--format sarif writes results.sarif, which GitHub code scanning and editors read. It holds the real findings and those a person must look at, each on its line. A finding izzy couldn't place is on the first place it may be, or on line 1 of its page's file, with its selector in the message. A finding on a page that has no file in the app is left out, since code scanning takes no result without a place. It stays in the other reports. Paths are written from the repository's root. The format needs the app's source: add --run or --project.

bash
izzy audit /orders --run --format md,json,sarif

Exit codes

Exit codes of izzy audit
CodeMeans
0The audit ran, and nothing --fail-on counts was found.
1No load of the page opened. With --fail-on, also when a load didn't open or answered with an error and nothing else failed the run. A recheck couldn't be made, or the command was wrong.
3The option needs IzzyBlazor Pro: --site.
4The option needs a free account, and izzy isn't signed in.
5Findings that --fail-on counts, or a rechecked finding that is still there and open.

What a green build means

A build that passes had no finding of the kind you chose, on the pages it audited, as they load. It doesn't check a dialog nobody opened, the order of the Tab key or what a screen reader says. With --fail-on real or new, a green build can still have findings that need a person and elements axe couldn't measure. They are in the report. Keep the checks a person does in your release steps.

Connection lost

Rejoining the server…