twisted: format twisted Failure objects by - various test infrastructure fixes by - flake8: correctly initialize options by - various fixes to use teamcity-messages code in JetBrains P圜harm IDE nose, unittest: correctly capture stdout to provide better test output Latest version to support them is 1.21 - python: supported Python 3.6, 3.7 - behave: initial support Correct supported python versions, description, keywords pytest: fix comparing asserts by #210 - Retry writes to stream on a EAGAIN IOError by #213 pylint: support pylint >= 2.3 by #215 - unittest: fix test hierarchy for subtests in tests with doc comments by #221 Latest version to support them is 1.27 - python: supported Python 3.8 python: supported Python 3.9 - support pylint >= 2.8 by #242 - pytest: add an option to swap actual/expected in diff support pylint >= 2.12 by #259 - pytest: fix assert diffs by #247 - pytest: support swapdiff as option by #244 python: supported Python 3.10 - escape unencodable messages by #261 |teamcity_ci| image:: :(id:TeamCityPluginsByJetBrains_TeamCityPythonReporter_Build)/statusIcon.svg _registry.register_as("TeamcityFormatter", TeamcityFormatter)Ĭonfiguration.format = Teamcity-messages uses it in order to enable reporting to TeamCity.Īdd -reporter=teamcity option to trial command lineįrom nfiguration import Configurationįrom teamcity.jb_behave_formatter import TeamcityFormatter TEAMCITY_VERSION environment variable exists during build on TeamCity. Pass TEAMCITY _VERSION environment variable inside your test virtenv. ``run_suite`` method or use the ``DiscoverRunner.test_runner`` propertyĪdd ``-output-format=teamcity.pylint_reporter.TeamCityReporter`` to If you are using another test runner, you should override the Test status reporting is enabled automatically under TeamCity build.įor Django 1.6+: Use the ``TeamcityDjangoRunner`` runner instead of theĭefault ``DiscoverRunner`` by changing the following setting in your Using ``python -m unittest``, you could use 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.TextTestRunner() unittest.main(testRunner=runner) Import unittest from teamcity import is_running_under_teamcity from teamcity.unittestpy import TeamcityTestRunner class Test(unittest.TestCase). If you wish to use the Python default unittest framework, you should This package uses service messages to report the build status to TeamCity. Additionally, it provides integration with the It allows sending "service messages" įrom Python code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |