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

5.1.0 • 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 { 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.

  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

Dependents (0)

Package Sidebar

Install

npm i @power-doctest/cli

Weekly Downloads

1

Version

5.1.0

License

MIT

Unpacked Size

40.2 kB

Total Files

16

Last publish

Collaborators

  • azu