@FileSystem.in_directory(current_directory, 'django', 'celeries')
def test_failfast():
 (status, output) = run_scenario(**{'--failfast': None})
 the(output).should.contain('This one is present')
 the(output).should.contain('Celeries before all')
 the(output).should.contain('Celeries before harvest')
 the(output).should.contain("Celeries before feature 'Test the django app leaves'")
 the(output).should.contain("Celeries before scenario 'This one is present'")
 the(output).should.contain("Celeries before step 'Given I say foo bar'")
 the(output).should.contain("Celeries after step 'Given I say foo bar'")
 the(output).should.contain("Celeries before step 'Then it fails'")
 the(output).should.contain("Celeries after step 'Then it fails'")
 the(output).should.contain("Celeries after scenario 'This one is present'")
 the(output).should.contain("Celeries after feature 'Test the django app leaves'")
 the(output).should.contain('Celeries after harvest')
 the(output).should.contain('Celeries after all')
 the(output).should_not.contain('This one is never called')

@ FileSystem . in_directory ( current_directory , 'django' , 'celeries' ) def test_failfast ( ) : ( status , output ) = run_scenario ( ** { '--failfast' : None } ) the ( output ) . should . contain ( 'This one is present' ) the ( output ) . should . contain ( 'Celeries before all' ) the ( output ) . should . contain ( 'Celeries before harvest' ) the ( output ) . should . contain ( "Celeries before feature 'Test the django app leaves'" ) the ( output ) . should . contain ( "Celeries before scenario 'This one is present'" ) the ( output ) . should . contain ( "Celeries before step 'Given I say foo bar'" ) the ( output ) . should . contain ( "Celeries after step 'Given I say foo bar'" ) the ( output ) . should . contain ( "Celeries before step 'Then it fails'" ) the ( output ) . should . contain ( "Celeries after step 'Then it fails'" ) the ( output ) . should . contain ( "Celeries after scenario 'This one is present'" ) the ( output ) . should . contain ( "Celeries after feature 'Test the django app leaves'" ) the ( output ) . should . contain ( 'Celeries after harvest' ) the ( output ) . should . contain ( 'Celeries after all' ) the ( output ) . should_not . contain ( 'This one is never called' )
passing --failfast to the harvest command will cause lettuce to stop in the first failure .