Skip to content

Instantly share code, notes, and snippets.

@bengolder
Created April 12, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengolder/0dcd58c7fd0fd318e4a377dc56cf39cd to your computer and use it in GitHub Desktop.
Save bengolder/0dcd58c7fd0fd318e4a377dc56cf39cd to your computer and use it in GitHub Desktop.
./manage.py behave --keepdb
Using existing test database for alias 'default'...
Feature: HomePage # features/homepage.feature:1

 Scenario:                                                       # features/homepage.feature:2
   Given the homepage loads                                      # features/steps/homepage.py:4 1.613s
   Then it should have the "apply-now" link and say "Apply now"  # features/steps/homepage.py:9 0.218s
   And it should have the "learn-more" link and say "Learn more" # features/steps/homepage.py:9 0.198s
   And "learn-more" should deeplink to "#learn_more_section"     # None


Failing scenarios:
 features/homepage.feature:2  

0 features passed, 1 failed, 0 skipped
0 scenarios passed, 1 failed, 0 skipped
3 steps passed, 0 failed, 0 skipped, 1 undefined
Took 0m2.028s

You can implement step definitions for undefined steps with these snippets:

@then(u'"learn-more" should deeplink to "#learn_more_section"')
def step_impl(context):
   raise NotImplementedError(u'STEP: Then "learn-more" should deeplink to "#learn_more_section"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment