


Teamcity-messages uses it in order to enable reporting to TeamCity. TEAMCITY_VERSION environment variable exists during build on TeamCity. Pass TEAMCITY_VERSION environment variable inside your test virtenv. PyLintĪdd -output-format=teamcity.pylint_reporter.TeamCityReporter to Test status reporting is enabled automatically under TeamCity build. Run_suite method or use the DiscoverRunner.test_runner property If you are using another test runner, you should override the Djangoįor Django 1.6+: Use the TeamcityDjangoRunner runner instead of theĭefault DiscoverRunner by changing the following setting in your

If you are used to running unittest from the command line, instead of See examples/simple.py for a full example. if _name_ = '_main_' : if is_running_under_teamcity (): runner = TeamcityTestRunner () else : runner = unittest. Modify the Test runner, e.g.: import unittest from teamcity import is_running_under_teamcity from teamcity.unittestpy import TeamcityTestRunner class Test ( unittest. If you wish to use the Python default unittest framework, you should This package uses service messages to report the build status to TeamCity. Or from source: python setup.py install Usage Install using pip: pip install teamcity-messages Additionally, it provides integration with the
