예제 #1
0
 def startTest(self, test):
     test._pydev_start_time = time.time()
     if hasattr(test, 'address'):
         address = test.address()
         file, test = address[0], address[2]
     else:
         # multiprocess
         file, test = test
     pydev_runfiles_xml_rpc.notifyStartTest(file, test)
예제 #2
0
 def startTest(self, test):
     test._pydev_start_time = time.time()
     if hasattr(test, 'address'):
         address = test.address()
         file, test = address[0], address[2]
     else:
         # multiprocess
         file, test = test
     pydev_runfiles_xml_rpc.notifyStartTest(file, test)
def pytest_runtest_setup(item):
    '''
    Note: with xdist will be on a secondary process.
    '''
    # We have our own redirection: if xdist does its redirection, we'll have
    # nothing in our contents (which is OK), but if it does, we'll get nothing
    # from pytest but will get our own here.
    start_redirect()
    filename = item.fspath.strpath
    test = item.location[2]

    pydev_runfiles_xml_rpc.notifyStartTest(filename, test)
def pytest_runtest_setup(item):
    '''
    Note: with xdist will be on a secondary process.
    '''
    # We have our own redirection: if xdist does its redirection, we'll have
    # nothing in our contents (which is OK), but if it does, we'll get nothing
    # from pytest but will get our own here.
    start_redirect()
    filename = item.fspath.strpath
    test = item.location[2]

    pydev_runfiles_xml_rpc.notifyStartTest(filename, test)
예제 #5
0
    def startTest(self, test):
        _PythonTextTestResult.startTest(self, test)
        self.buf = pydevd_io.start_redirect(keep_original_redirection=True, std='both')
        self.start_time = time.time()
        self._current_errors_stack = []
        self._current_failures_stack = []

        try:
            test_name = test.__class__.__name__+"."+test._testMethodName
        except AttributeError:
            #Support for jython 2.1 (__testMethodName is pseudo-private in the test case)
            test_name = test.__class__.__name__+"."+test._TestCase__testMethodName

        pydev_runfiles_xml_rpc.notifyStartTest(
            test.__pydev_pyfile__, test_name)
    def startTest(self, test):
        _PythonTextTestResult.startTest(self, test)
        self.buf = pydevd_io.start_redirect(keep_original_redirection=True, std='both')
        self.start_time = time.time()
        self._current_errors_stack = []
        self._current_failures_stack = []

        try:
            test_name = test.__class__.__name__+"."+test._testMethodName
        except AttributeError:
            #Support for jython 2.1 (__testMethodName is pseudo-private in the test case)
            test_name = test.__class__.__name__+"."+test._TestCase__testMethodName

        pydev_runfiles_xml_rpc.notifyStartTest(
            test.__pydev_pyfile__, test_name)
예제 #7
0
 def startTest(self, test):
     test._pydev_start_time = time.time()
     file, test = self._get_test_address(test)
     pydev_runfiles_xml_rpc.notifyStartTest(file, test)
예제 #8
0
 def notifyStartTest(self, job_id, *args, **kwargs):
     pydev_runfiles_xml_rpc.notifyStartTest(*args, **kwargs)
     return True
예제 #9
0
def pytest_runtest_setup(item):
    filename = item.fspath.strpath
    test = item.location[2]
    State.start_test_time = time.time()

    pydev_runfiles_xml_rpc.notifyStartTest(filename, test)
예제 #10
0
 def notifyStartTest(self, job_id, *args, **kwargs):
     pydev_runfiles_xml_rpc.notifyStartTest(*args, **kwargs)
     return True
예제 #11
0
def pytest_runtest_setup(item):
    filename = item.fspath.strpath
    test = item.location[2]
    State.start_test_time = time.time()

    pydev_runfiles_xml_rpc.notifyStartTest(filename, test)