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 --generatetell spec -g# doesn't prompts tell spec --generate --yestell 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 argumentssrc/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...