Esempio n. 1
0
 def createResult(self):
     util.newResults(self, testlistener=self.listener)
     return util.getResults()
Esempio n. 2
0
 def createResult(self):
     util.newResults(self, testlistener=self.listener)
     return util.getResults()
Esempio n. 3
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):
    """
Esempio n. 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):
    '''