tell-cli

0.1.6 • Public • Published

Tell-cli

Built with Grunt MIT License

Provides an easy and quick way to describe your stories with an YAML file Can generate Mocha files from stories.yml

Install

npm install -g tell-cli

must be installed globally

Usages

An yaml file named stories.yml as describe below must be placed in your spec | tests |... folder

# output stories in console, doesn't generate spec files 
tell spec
# prompts for overwite specs files - default to false 
tell spec --generate
tell spec -g
# doesn't prompts 
tell spec --generate --yes
tell spec -g -Y

spec/stories.yml

src/filename.js:
  render:
    - throw if no argument
    - should return a string
    - should return helloworld
  a_function_name:
    other_cases
      - returns false if no arguments
      - returns arguments is empty
      - returns false is not a plainobject
      - returns options property 'name' is not defined
      - expect to returns array of arguments
    other_other_cases:
      - returns false if no arguments
      - returns arguments is empty
      - returns false is not a plainobject
      - returns options property <name> is not defined
      - expect to returns array of arguments
src/an_other_filename.js:
  - throw if no argument
  - should return a string
  - should return helloworld

History

  • v0.1.4 Fix multiple files

Issues

  • Not tested under UNIX
  • No unit tests...

Dependencies

Package Sidebar

Install

npm i tell-cli

Weekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • sixertoy