コード例 #1
0
ファイル: run.py プロジェクト: enachb/meetup.beeno
 def createResult(self):
     util.newResults(self, testlistener=self.listener)
     return util.getResults()
コード例 #2
0
 def createResult(self):
     util.newResults(self, testlistener=self.listener)
     return util.getResults()
コード例 #3
0
ファイル: run.py プロジェクト: enachb/meetup.beeno
            # teardown
        if testmod is not None:
            try:
                self.modTearDown(testmod)
            except java.lang.Exception, je:
                util.__test_results__.error(je)
            except Exception, e:
                util.__test_results__.error(e)

        util.endTest(self)

        # two method versions, one returns results
        if results is None:
            # no arg version
            return util.getResults()

    def toString(self):
        """
		By default JUnit displays "testname(class name)", which is just plain
		ugly here, since the only useful information is the filename.  So just return
		that instead.
		"""
        return self.mod_name

    def __str__(self):
        return self.toString()


class JUnitTestAdapter(junit.framework.TestCase):
    """
コード例 #4
0
        # teardown
        if testmod is not None:
            try:
                self.modTearDown(testmod)
            except java.lang.Exception, je:
                util.__test_results__.error(je)
            except Exception, e:
                util.__test_results__.error(e)

        util.endTest(self)

        # two method versions, one returns results
        if results is None:
            # no arg version
            return util.getResults()

    def toString(self):
        '''
		By default JUnit displays "testname(class name)", which is just plain
		ugly here, since the only useful information is the filename.  So just return
		that instead.
		'''
        return self.mod_name

    def __str__(self):
        return self.toString()


class JUnitTestAdapter(junit.framework.TestCase):
    '''