Skip to content

Commit

Permalink
adds testcase id() for more sensible xunit output
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunc committed Jul 13, 2012
1 parent 285f8b8 commit 769911a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions freshen/noseplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def tearDown( self ):
for hook_impl in reversed( self.step_registry.get_hooks( 'after', self.scenario.get_tags() ) ):
hook_impl.run( self.scenario )

def id( self ):
feature = os.path.relpath( self.feature.src_file )
scenario = self.scenario.name.replace( '.', ' ' )
return '{}.{}'.format( feature, scenario )

class FreshenErrorPlugin( ErrorClassPlugin ):

enabled = True
Expand Down

0 comments on commit 769911a

Please sign in to comment.