{"action":"opened","issue":{"url":"https://api.github.com/repos/pa11y/pa11y/issues/156","repository_url":"https://api.github.com/repos/pa11y/pa11y","labels_url":"https://api.github.com/repos/pa11y/pa11y/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/pa11y/pa11y/issues/156/comments","events_url":"https://api.github.com/repos/pa11y/pa11y/issues/156/events","html_url":"https://github.com/pa11y/pa11y/issues/156","id":156528763,"number":156,"title":"How to HTML/Other reports with node?","user":{"login":"joviano-dias-springernature","id":17930002,"avatar_url":"https://avatars.githubusercontent.com/u/17930002?v=3","gravatar_id":"","url":"https://api.github.com/users/joviano-dias-springernature","html_url":"https://github.com/joviano-dias-springernature","followers_url":"https://api.github.com/users/joviano-dias-springernature/followers","following_url":"https://api.github.com/users/joviano-dias-springernature/following{/other_user}","gists_url":"https://api.github.com/users/joviano-dias-springernature/gists{/gist_id}","starred_url":"https://api.github.com/users/joviano-dias-springernature/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joviano-dias-springernature/subscriptions","organizations_url":"https://api.github.com/users/joviano-dias-springernature/orgs","repos_url":"https://api.github.com/users/joviano-dias-springernature/repos","events_url":"https://api.github.com/users/joviano-dias-springernature/events{/privacy}","received_events_url":"https://api.github.com/users/joviano-dias-springernature/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T14:52:50Z","updated_at":"2016-05-24T14:52:50Z","closed_at":null,"body":"Finding pa11y great. Was able to build a decent multi-url script and also build a docker image to run pa11y on cli. One thing still remains to be resolved though. How do I get HTML reports when running using node?\r\nI know that running it via pa11y, the reporter can be specified. E.g.\r\n ```\r\npa11y --reporter csv nature.com > report.csv\r\n```\r\nHow do I do the same with node?\r\n```\r\nnode pa11y-tests/all/\r\n```\r\n\r\nRight now, I just get the results printed onto the console as \r\n\r\n```\r\n[\r\n    {\r\n        code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H30.2',\r\n        context: '<a href=\"http://example.com/\"><img src=\"example.jpg\" alt=\"\"/></a>',\r\n        message: 'Img element is the only content of the link, but is missing alt text. The alt text should describe the purpose of the link.',\r\n        selector: 'html > body > p:nth-child(1) > a',\r\n        type: 'error',\r\n        typeCode: 1\r\n    },\r\n    {\r\n        code: 'WCAG2AA.Principle1.Guideline1_3.1_3_1.H49.B',\r\n        context: '<b>Hello World!</b>',\r\n        message: 'Semantic markup should be used to mark emphasised or special text so that it can be programmatically determined.',\r\n        selector: '#content > b:nth-child(4)',\r\n        type: 'warning',\r\n        typeCode: 2\r\n    },\r\n    {\r\n        code: 'WCAG2AA.Principle2.Guideline2_4.2_4_4.H77,H78,H79,H80,H81',\r\n        context: '<a href=\"http://example.com/\">Hello World!</a>',\r\n        message: 'Check that the link text combined with programmatically determined link context identifies the purpose of the link.',\r\n        selector: 'html > body > ul > li:nth-child(2) > a',\r\n        type: 'notice',\r\n        typeCode: 3\r\n    }\r\n]\r\n```"}}
{"actor":{"display_login":"joviano-dias-springernature"}}