![]() Py.test: limit captured stdout/stderr by 1M per test and send it to TeamCity in chunks of 50K chars Unittest: support skipped tests in Python 2.6 (by unittest2) Nose: handle errors/failures in teardown/setup Report coverage statistics from py.test pytest-cov plugin (Joseph Lombrozo, ) Nose: report skip test reason (Lewis Coates, ) Nose: fix tests reporting in multiprocess environment, thanks to Lewis Coates, įix UnicodeEncodeError when is None, thanks to Marc Abramowitz, Twisted’s trial support (Alexey Larkov, ) More messages support (Marc Abramowitz, )īuildProblem, buildStatus, setParameter, importData, enableServiceMessages, disableServiceMessages etcīlocks messages support (Marc Abramowitz, ) Twisted: fix twisted failure test reporting #88 (Alexey Larkov, )įlake8: better test name #89 (Marc Abramowitz, )ĭon’t force a newline at the start of service messages #90 (Gary Donovan, )Īutomatically detect TeamCity in flake8 plugin (Marc Abramowitz, ) Nose: make sure to turn reason into string when skipping test #98 (Piyush Gupta, ) Pytest: support for pytest-pep8 and pytest-lint plugins Pytest: better test location presentation Pytest: do not report setup fixtures as separate tests ( ) Nose: support capturing test output from successful tests, #113įix possible error when joining bytes and unicode (Victor Makarov, )įix flake8 2.6.0 support #103 (Cody Maloney, ) Pytest: internal Error during test collection with pytest and teamcity-messages plugin #112 Twisted: format twisted Failure objects by test infrastructure fixes by correctly initialize options by fixes to use teamcity-messages code in JetBrains P圜harm IDE Nose, unittest: correctly capture stdout to provide better test output Retry writes to stream on a EAGAIN IOError by #213Ĭorrect supported python versions, description, keywords Unittest: fix test hierarchy for subtests in tests with doc comments by #221 Pytest: add an option to swap actual/expected in diff Pytest: support swapdiff as option by #244 See for Python version compatibility Contact informationĪpache, version 2.0 Change Log Version 1.32 Tue Sep 27 2022 stderr_capture = False Runner ( configuration ). register_as ( "TeamcityFormatter", TeamcityFormatter ) configuration = Configuration () configuration. Īdd -reporter=teamcity option to trial command line Behaveįor Behave 1.2.6: from behave.formatter import _registry from nfiguration import Configuration from nner import Runner from teamcity.jb_behave_formatter import TeamcityFormatter _registry. 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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |