method: test.Session.main

 main loop for running tests. 
    def main(self, args): 

origin: test.Session

where:

function source:

def main(self, args): 
    """ main loop for running tests. """
    colitems = self._map2colitems(args) 
    try:
        self.header(colitems) 
        try:
            for colitem in colitems: 
                colitem.option = self.config.option
                self.runtraced(colitem)
        except KeyboardInterrupt: 
            raise 
        except: 
            self.footer(colitems) 
        else: 
            self.footer(colitems) 
    except Exit, ex:
        pass
    # return [(fspath as string, [names as string])]
    return [(str(item.listchain()[0].fspath), item.listnames())
            for item, outcome in self.getitemoutcomepairs(py.test.Item.Failed)]