bbangert / lettuce_webdriver

Selenium webdriver for lettuce
MIT License
81 stars 32 forks source link

@after_all (and possibly other) decorators not behaving properly. #44

Open wholewheattoast opened 10 years ago

wholewheattoast commented 10 years ago

@after_all seems to be firing after every feature run, not after all the features.

A run with lettuce screen shot 2014-08-06 at 2 46 27 pm

A run with lettuce_webdriver screen shot 2014-08-06 at 2 45 41 pm

Test is the example from lettuce.it

With a second copy of the feature to have more then one feature running. I can gist the tests if needed.

Each test done in it's own virturalenv against the same exact /feature directory.

The terrain file looks like

from lettuce import *

@after.all
def say_goodbye(total):
    report_message = "%d of %d scenarios passed." % (
        total.scenarios_passed,
        total.scenarios_ran
    )

    print report_message
    print "After All -- Goodbye!"

@after.each_feature
def teardown_some_feature(feature):
    print "The feature %r just has just ran" % feature.name