teamcity-messages
Send test results to TeamCity continuous integration server from unittest, nose, py.test, twisted trial, behave (Python 2.6+)
What it is and what it does
teamcity-messages bridges Python test frameworks and JetBrains TeamCity by translating test results into TeamCity service messages. It integrates with unittest, pytest, nose, Django, Twisted Trial, Behave, Flake8, and PyLint, allowing test output, failures, and skips to appear natively in TeamCity's build logs and UI. Most frameworks auto-detect TeamCity via the TEAMCITY_VERSION environment variable; unittest and some others require explicit runner substitution.
The package has no external dependencies and installs as a lightweight wheel. It's been actively maintained since 2008, with recent updates for Python 3.12 and compatibility fixes for newer tool versions (coverage 7.5+, flake8 5.0+, pylint 2.12+). It's suitable for teams already using TeamCity who want seamless test reporting from Python projects.
Use it for:
- Report unittest test results directly to TeamCity build logs without manual parsing or custom scripts
- Integrate pytest runs into TeamCity CI pipelines with automatic test hierarchy and failure details
- Surface Flake8 linting violations as TeamCity build problems during continuous integration
- Report Behave BDD test outcomes to TeamCity for behavior-driven development workflows
- Capture PyLint code quality checks in TeamCity build status and test reporting
- Enable Django test runner to report results to TeamCity when using Django 1.6+
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends test results and build status from Python test frameworks (unittest, pytest, nose, Django, Twisted, Behave, Flake8, PyLint) to JetBrains TeamCity CI servers via service messages.
Yes, if you use TeamCity and Python test frameworks. Low install friction, no dependencies, active maintenance, and permissive license make it a straightforward choice for TeamCity users. Not relevant if you use other CI systems (Jenkins, GitHub Actions, GitLab CI) or don't use TeamCity.
Install
teamcity-messages on PyPI
pip
pip install teamcity-messagesuv
uv add teamcity-messagespoetry
poetry add teamcity-messagesInstalling teamcity-messages
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent release (January 2025) and ongoing compatibility updates for modern Python versions.
License in practice
Apache 2.0 permissive license allows use in commercial and open-source projects without significant restrictions.
Quickstart
pip install teamcity-messages
import unittest
from teamcity.unittestpy import TeamcityTestRunner
runner = TeamcityTestRunner()
unittest.main(testRunner=runner)
Must be running under a TeamCity build environment (detected via TEAMCITY_VERSION environment variable) for service messages to be sent; otherwise behaves as a pass-through.
Verify before relying
- Whether pytest and nose plugins are auto-discovered or require explicit configuration beyond environment detection
- Exact Python version support range (classifiers list 2.7 and 3.6+ but requires_python is unspecified)
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 561 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 745,984/month — #5,170 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: teamcity_messages-1.33-py3-none-any.whl
Keywords: unittest, teamcity, test, nose, behave, flake8, py.test, pytest, jetbrains
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
reportportal-clientA Python client library that sends test…
permissive · top 5,000 on PyPI
unittest-xml-reportingA unittest test runner that exports test…
permissive · top 5,000 on PyPI
xmlrunnerA unittest test runner that exports test…
copyleft · top 15,000 on PyPI
pytest-progressA pytest plugin that displays real-time test…
permissive · top 15,000 on PyPI
cov-corecov-core provides the internal plugin…
permissive · top 15,000 on PyPI
pytest-tappytest-tap outputs test results in Test…
permissive · top 15,000 on PyPI
nosenose extends unittest with automatic test…
copyleft · top 5,000 on PyPI
nose-py3nose-py3 extends unittest with automatic test…
copyleft · top 15,000 on PyPI
qase-python-commonsProvides core configuration and SDK…
permissive · top 15,000 on PyPI
sealights-python-agentIntegrates Python applications with Tricentis…
unclear · top 15,000 on PyPI