@power-doctest/cli
v5.1.0
Published
A command line tool for power-doctest.
Downloads
10
Maintainers
Readme
power-doctest
A command line tool for power-doctest.
Install
Install with npm:
npm install power-doctest -g
Usage
CLI
Usage
$ power-doctest /path/to/file.{js,md,adoc}
Options
--packageDir Current Working directory. Should put package.json in the directory.
--disableRunning Disable running test case that has not state.
Examples
$ power-doctest ./README.md
$ power-doctest ./README.adoc
$ power-doctest ./src/main.js
Node Modules
const { testContent } = require("power-doctest");
testContent({
content: "1; // => 2",
contentType: "javascript",
filePath: "test.js",
disableRunning: true
}).then(results => {
console.log(results[0].status); // => "rejected"
});
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu