Skip to content

workflows

Testing and Validation

Smoke test AnswerLint locally before publishing or integrating into a larger workflow.

If you are contributing to the package or validating it in a new environment, start with local files first. They remove network variability and make it easier to verify the output shape.

Build from source

Command

git clone <your-repo-url> answerlint
cd answerlint
npm install
npm run lint
npm run build

Smoke test a local file

Command

node dist/index.js audit --file ./README.md --output html --output-path ./test-report.html

Smoke test JSON output

Command

node dist/index.js audit --file ./README.md --output json --output-path ./test-report.json
node -e "const r=require('./test-report.json'); console.log(r.scores, r.audits.length)"
Testing and Validation · AnswerLint Docs