Skip to content

keanpantraw/loaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lettuce Stub Methods Generator

  • Provide stories as command line arguments:

loaf test1.test test2.test test3.test

and get your stubs:

test1.py test2.py test3.py

  • Or in 1 file:

loaf test1.test test2.test --to __init__.py

  • Or with different prepositions:

loaf --prepositions=When,Then,And,Require test1.test

  • Or with different imports:

loaf --imports imports_template test1.test

Sample:

  • For feature:

::

Feature: Monday feature
Scenario: Typical Monday Scenario
Wherever I go "home"
Always I return at "work"
  • We get stubs:

::

from lettuce import step


@step(u'I go "([^"]*)"')
def whethever_i_go_group1(step, group1):
    pass

@step(u'I return at "([^"]*)"')
def always_i_return_at_group1(step, group1):
    pass
  • By using command:

loaf --prepositions Wherever,Always test1.test

About

Lettuce Stub Methods Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages