auditing0.0.7 • Public • Published
Set the audits once and just run the tests. The runner is based on mocha.
- Install node
cd <project_folder>npm init # If you don't have a package.json alreadynpm install --save-dev auditing
I still have to document how you can
require and use the
core directly but just so that you know, you can do it and the results are based on
.audit.json and run all the tasks you want when you pass it to
Note: Any kind of path should be absolute or relative to the place the script is called.
node <mocha_path> <auditing> --mocha=true --config=<config_src>
<mocha_path>: Pass the path to mocha. For example
node_modules/mocha/bin/mocha. You could simply use
mochainstead if you have it globally or if you're using
npm scripts. It is required
<auditing>: Set the path for the auditing main index.js file. It is required
<config_json_src>: Path to the config json for crawling. It is required
node ./node_modules/mocha/bin/mocha ./node_modules/auditing/dist/index.js --mocha=true --config=".audit.json"
type: It can be an
waitFor: Usually used with
waitForthe selector to be present. It will only wait
base: Option only available for type url. Optional key
baseEnv: Option only available for type url. Optional key
ignore: Ignore rules and nested messages with ignore
Go under the src/_test/data folder and check the