Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Audit a page

izzy audit checks a page's accessibility with axe-core and checks of its own, in the Chrome or Edge already on your machine. It writes a report you can read and the same results as data. It reports and changes no code.

Audit a page

izzy audit is a command of the izzy CLI. Give it the page's address. The app can be running anywhere the browser can reach:

bash
izzy audit https://localhost:5001/orders

To have izzy start the app in your project, audit it and stop it, add --run and give the page's path. Without a path it audits the home page:

bash
izzy audit /orders --run

izzy opens the page five times: at 1440 and 375 pixels wide, in light and in dark, and once in forced colors. Some problems show at one width or in one scheme only. An element found more than once counts once.

The terminal lists each rule that failed with its count of elements, and izzy writes its files to a new folder in .izzy/audit/. Reports lists them.

What is free

Auditing one page is free. What you get depends on whether izzy is signed in:

What an audit gives, by account
WithYou get
No accountaxe-core and izzy's own checks on one page. The findings are listed as the tools gave them, and a finding of izzy's own checks has izzy's note. report.md and results.json.
A free accountAlso a verdict and its reason for each finding, the component that drew the element, the fix when izzy knows one and its line in your code. A task list, a report to hand over, a file for code scanning, a baseline to compare with, and the two tools for a coding agent.
IzzyBlazor ProAlso several pages in one run: a whole site with --site, or the pages you list with --urls.

Sign in with izzy login: see Your account.

Pages behind a sign-in

A page that sends a visitor to a sign-in page isn't checked: what the browser shows is the sign-in page. The report says the page needs sign-in, names the sign-in page it led to, and gives the command that signs in for the audit. A page the signed-in account may not open, which leads to an access denied page, isn't checked either, and the report says so.

--sign-in opens a browser window at the app's sign-in page. Sign in there the way the app has you do it: a password, Microsoft or Google, your company's sign-in, a second step. The window closes once you're in, and the audit runs signed in:

bash
izzy audit /orders --run --sign-in

The audits after use the same sign-in until the app stops taking it. Then the report says the page needs sign-in again. izzy keeps the sign-in in .izzy/sign-in.json: the cookies the app gave the browser. Only you can read the file, a .gitignore beside it keeps it out of your repository, and izzy never sends it anywhere but your app. izzy audit --sign-out deletes it.

An app made from an izzy kit with sample data needs no window: --sign-in sample signs in as its sample user, with the email and password from appsettings.Development.json. In an app from the CRM kit, that's Jamie Davis, an admin:

bash
izzy audit /deals --run --sign-in sample

To sign in some other way, pass the session cookie with --cookie. izzy sends it with every request. Repeat the option for more cookies:

bash
izzy audit /orders --run --cookie .AspNetCore.Identity.Application=CfDJ8...

Audit the whole site

With IzzyBlazor Pro, --site audits every page of a site. izzy takes the pages from the site's sitemap.xml. Without one, it starts at the address you give and follows the links to the site's other pages. With --run, it audits the whole app and needs no address:

bash
izzy audit --run --site

An address with a path keeps the audit inside it: izzy audit --site https://localhost:5001/docs audits /docs and the pages under it. A page is a path, so two addresses that differ only after the ? are audited once. izzy stops at 500 pages; change that with --max-pages. A long run uses up to three browsers side by side.

To audit pages of your own choosing, list their addresses in a file, one a line, and pass it with --urls:

bash
izzy audit --urls pages.txt --run

Following links finds only what a link in the page's HTML leads to. A page reached another way, such as from a menu drawn by script, needs a sitemap or a line in the file.

Options

Options of izzy audit
OptionWhat it does
--runStarts the app in this project, or the one --project names, and stops it after the audit. With an account, findings are traced into its source.
--siteAudits every page of the site: its sitemap's, else those its links lead to. Pro.
--urls <file>Audits the addresses a file lists, one a line. Pro: without it, izzy audits the first and says so.
--max-pages 500The most pages --site audits.
--sign-inOpens a browser window to sign in to the app, then audits signed in. Later audits reuse the sign-in.
--sign-in sampleSigns in as the sample user of an izzy kit's sample data, such as the CRM kit's Jamie Davis.
--sign-outDeletes the sign-in izzy kept. Alone, it audits nothing.
--cookie name=valueSends a cookie with every request. Repeat it for more cookies.
--sizes 1440,375The widths to check, in pixels.
--schemes light,darkThe color schemes to check. Each page is also opened once in forced colors.
--out <folder>Where the files go, in place of a new folder in .izzy/audit/.
--format md,jsonWhich files to write. With an account, tasks adds tasks.md, html adds report.html and sarif adds results.sarif.
--project <path>The app's project: where --run starts it, and with an account where a finding's file and line are looked for.
--jsonPrints the results as JSON and writes no files. With --out, it writes the files too, and the JSON names them in written.
--fail-on anyEnds with exit code 5 when there are findings. With an account, real counts real findings and new counts real findings the baseline lacks.
--baseline <file>A past run's results.json to compare with. Needs an account.
--recheck <id>Audits again the page a past run's finding is on, and says whether it is fixed.
--browser <path>The Chrome, Edge or Chromium to use.

Next steps

Connection lost

Rejoining the server…