0.1.6 • Published 9 years ago
tell-cli v0.1.6
Tell-cli
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...