Provides an easy and quick way to describe your stories with an YAML file Can generate Mocha files from stories.yml
npm install -g tell-cli
must be installed globally
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
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
- v0.1.4 Fix multiple files
- Not tested under UNIX
- No unit tests...