pomanalyzer
Version:
pomanalyzer is a utility to analyze Apache Maven POM XML file
44 lines (22 loc) • 821 B
Markdown
# Automated testing with Jest
## Run Your Tests
`npm init -y # if you haven't created a package.json yet`
`npm install --save-dev jest`
`npm test`
or
`npx jest`
### Check jest.config.js for testing configuration
`npm test -- --coverage`
`node src/index.js ./test/Test1.xml`
`node cli.js ./test/Test1.xml`
`node cli.js --html ./test/Test1.xml`
`node cli.js --markdown ./test/Test1.xml`
`node cli.js --markdown --html ./test/Test1.xml`
`node cli.js --markdown --html --output-folder output ./test/Test1.xml`
### Test with NPM Link
`pomanalyzer ./test/Test1.xml`
`pomanalyzer ./test/Test1.xml`
`pomanalyzer --html ./test/Test1.xml`
`pomanalyzer --markdown ./test/Test1.xml`
`pomanalyzer --markdown --html ./test/Test1.xml`
`pomanalyzer --markdown --html --output-folder output ./test/Test1.xml`