Here are the examples of the python api PyTest.tracker.enterSuite taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Example 1
def _run( self ):
PyTest.tracker.enterSuite( self._suiteDescription() );
for ( testName, testMethod ) in self._testCases:
PyTest.tracker.enterTest( self._testDescription( testName ) );
self._setUpWrapper();
self._callTestWrapper( testMethod );
self._tearDownWrapper();
PyTest.tracker.leaveTest( self._testDescription( testName ) );
PyTest.tracker.leaveSuite( self._suiteDescription() );
3
Example 2
def _runSingleTest( self, singleTest ):
PyTest.tracker.enterSuite( self._suiteDescription() );
for ( testName, testMethod ) in self._testCases:
if testName != singleTest:
continue
PyTest.tracker.enterTest( self._testDescription( testName ) );
self._setUpWrapper();
self._callTestWrapper( testMethod );
self._tearDownWrapper();
PyTest.tracker.leaveTest( self._testDescription( testName ) );
PyTest.tracker.leaveSuite( self._suiteDescription() );