dequelabs / axe-cli

[Deprecated] A command-line interface for the aXe accessibility testing engine
Mozilla Public License 2.0
430 stars 44 forks source link

Unable to use a specific axe-core with -a parameter #23

Closed aarontk closed 6 years ago

aarontk commented 7 years ago

The -a parameter doesn't work. I receive the following output: PS C:\axe> axe -a \core\axe.js path.js:7 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^

TypeError: Path must be a string. Received true at assertPath (path.js:7:11) at Object.join (path.js:468:7) at Object.getAxeSource (C:\Users\aaron\AppData\Roaming\npm\node_modules\axe-cli\lib\utils.js:49:18) at Object. (C:\Users\aaron\AppData\Roaming\npm\node_modules\axe-cli\index.js:27:27) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) PS C:\axe>

Simple debug shows that the -a parameter is being parsed as a BOOLEAN instead of a string.

marcysutton commented 7 years ago

@WilcoFiers this isn't documented but it's in the source code, we should make sure it works (and is documented)

WilcoFiers commented 7 years ago

Not sure how that happened. I don't think I ever intended to keep that code in, but it's there now, and not hard to build, so, there you go :D

https://github.com/dequelabs/axe-cli/pull/25/

marcysutton commented 6 years ago

This should be fixed with #25.