def test_should_use_default_proxy_if_project_property_is_not_set(self):
        self.mock_os.environ = {}
        self.project.set_property('teamcity_output', False)

        proxy = test_proxy_for(self.project)

        self.assertEqual(type(proxy), TestProxy)
Beispiel #2
0
    def test_should_use_teamcity_proxy_if_project_property_is_set(self):
        self.mock_os.environ = {}
        self.project.set_property('teamcity_output', True)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TeamCityTestProxy)
Beispiel #3
0
    def test_should_use_default_proxy_if_teamcity_in_environment_but_coverage_is_running(self):
        self.mock_os.environ = {"TEAMCITY_VERSION": "1.0.0"}
        self.project.set_property('__running_coverage', True)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TestProxy)
    def test_should_use_default_proxy_if_project_property_is_not_set(self):
        self.mock_os.environ = {}
        self.project.set_property('teamcity_output', False)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TestProxy)
Beispiel #5
0
    def test_should_use_teamcity_proxy_if_project_property_is_set_and_teamcity_in_environment(self):
        self.mock_os.environ = {"TEAMCITY_VERSION": "1.0.0"}
        self.project.set_property('teamcity_output', True)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TeamCityTestProxy)
    def test_should_use_default_proxy_if_project_property_is_set_but_coverage_is_running(self):
        self.project.set_property('teamcity_output', True)
        self.project.set_property('__running_coverage', True)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TestProxy)
 def report_to_ci_server(self, project):
     for report in self.reports:
         test_name = report["test"]
         test_failed = report["success"] is not True
         with test_proxy_for(project).and_test_name("Integrationtest.%s" % test_name) as test:
             if test_failed:
                 test.fails(report["exception"])
 def report_to_ci_server(self, project):
     for report in self.reports:
         test_name = report['test']
         test_failed = report['success'] is not True
         with test_proxy_for(project).and_test_name('Integrationtest.%s' % test_name) as test:
             if test_failed:
                 test.fails(report['exception'])
    def test_should_use_teamcity_proxy_if_project_property_is_set(self):
        self.mock_os.environ = {}
        self.project.set_property('teamcity_output', True)

        proxy = test_proxy_for(self.project)

        self.assertEqual(type(proxy), TeamCityTestProxy)
Beispiel #10
0
    def test_should_use_default_proxy_if_project_property_is_set_but_coverage_is_running(self):
        self.mock_os.environ = {}
        self.project.set_property('teamcity_output', True)
        self.project.set_property('__running_coverage', True)

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TestProxy)
 def report_to_ci_server(self, project):
     for report in self.reports:
         test_name = report['test']
         test_failed = report['success'] is not True
         with test_proxy_for(project).and_test_name('Integrationtest.%s' %
                                                    test_name) as test:
             if test_failed:
                 test.fails(report['exception'])
Beispiel #12
0
def report_to_ci_server(project, result):
    for test_name in result.test_names:
        with test_proxy_for(project).and_test_name(test_name) as test:
            if test_name in result.failed_test_names_and_reasons:
                test.fails(result.failed_test_names_and_reasons.get(test_name))
    def test_should_use_teamcity_proxy_if_teamcity_in_environment(self):
        self.mock_os.environ = {"TEAMCITY_VERSION": "1.0.0"}

        proxy = test_proxy_for(self.project)

        self.assertEqual(type(proxy), TeamCityTestProxy)
Beispiel #14
0
def report_to_ci_server(project, result):
    for test_name in result.test_names:
        with test_proxy_for(project).and_test_name(test_name) as test:
            if test_name in result.failed_test_names_and_reasons:
                test.fails(result.failed_test_names_and_reasons.get(test_name))
    def test_should_use_teamcity_proxy_if_teamcity_in_environment(self):
        self.mock_os.environ = {"TEAMCITY_VERSION": "1.0.0"}

        proxy = test_proxy_for(self.project)

        self.assertEquals(type(proxy), TeamCityTestProxy)