#NEWLINE# def _show_missing_code_main( config , session ) : #NEWLINE# #INDENT# 'Preparing fixture duplicates for output.' #NEWLINE# tw = py . io . TerminalWriter ( ) #NEWLINE# session . perform_collect ( ) #NEWLINE# fm = session . _fixturemanager #NEWLINE# if ( config . option . features is None ) : #NEWLINE# #INDENT# tw . line ( 'The --feature parameter is required.' , red = True ) #NEWLINE# session . exitstatus = 100 #NEWLINE# return #NEWLINE# #UNINDENT# ( features , scenarios , steps ) = parse_feature_files ( config . option . features ) #NEWLINE# for item in session . items : #NEWLINE# #INDENT# scenario = getattr ( item . obj , '__scenario__' , None ) #NEWLINE# if scenario : #NEWLINE# #INDENT# if ( scenario in scenarios ) : #NEWLINE# #INDENT# scenarios . remove ( scenario ) #NEWLINE# #UNINDENT# for step in scenario . steps : #NEWLINE# #INDENT# fixturedefs = _find_step_fixturedef ( fm , item , step . name , step . type ) #NEWLINE# if fixturedefs : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# steps . remove ( step ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# for scenario in scenarios : #NEWLINE# #INDENT# for step in scenario . steps : #NEWLINE# #INDENT# if ( step . background is None ) : #NEWLINE# #INDENT# steps . remove ( step ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# grouped_steps = group_steps ( steps ) #NEWLINE# print_missing_code ( scenarios , grouped_steps ) #NEWLINE# if ( scenarios or steps ) : #NEWLINE# #INDENT# session . exitstatus = 100