power-doctest
TypeScript icon, indicating that this package has built-in type declarations

5.3.3 • Public • Published

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 { runPowerDoctest } = require("power-doctest");
runPowerDoctest({
    content: "1; // => 2",
    contentType: "javascript",
    filePath: "test.js",
    disableRunning: false
}).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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Package Sidebar

Install

npm i power-doctest

Weekly Downloads

5

Version

5.3.3

License

MIT

Unpacked Size

44 kB

Total Files

15

Last publish

Collaborators

  • azu