Tagging Results
Not for use with personal data
Tagging is a helpful feature to add metadata to your scans that will be visible in the axe Developer Hub UI. Some helpful tags for your team may be the team name, build number, simulator version, etc.
Send a Scan with a Tag
In the following example, we're using the parameter withTags and attaching a tag named "build: 0.0.1" to the scan.
func testAccessibility() throws {
guard let result = try axe?.run(onElement: XCUIApplication()) else {
XCTFail()
return
}
try axe?.postResult(result, withTags: ["build: 0.0.1"])
}