Python Unit Test Reporting to TeamCity (EXTENDED)
Project description
teamcity-messages-extra
teamcity-messages (JetBrains official package) has no activity for over one year.
This package will try to address some of the missing features by extending official one. It's not a fork, teamcity-messages is an actual dependency so that any dependency analysis tools (eg, dependency-check) properly identify it.
Usage
Just import teamcity_extra instead of teamcity. Everything from the official package will be available, plus the extra.
Instead of:
from teamcity.messages import TeamcityServiceMessages
Use:
from teamcity_extra.messages import TeamcityServiceMessages
Extra
TeamcityServiceMessages.testMetadata
TeamcityServiceMessages.buildStatisticValue
buildStatisticValue service message
TeamcityServiceMessages.addBuildTag
TeamcityServiceMessages.addBuildTag
removeBuildTag service message
TeamcityServiceMessages.NO_OUTPUT
NO_OUTPUT output will make all service message calls / methods in TeamcityServiceMessages to not print anything.
This allows for simpler code when teamcity output is optional
from teamcity_extra.messages import TeamcityServiceMessages, NO_OUTPUT
# None is the default value (stdout)
tsm = TeamcityServiceMessages(output=None if should_report_to_teamcity() else NO_OUTPUT)
with tsm.test('thisTest'):
doWhatever()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file teamcity_messages_extra-1.1.0.tar.gz.
File metadata
- Download URL: teamcity_messages_extra-1.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c741bbe3b277bd512979a4e32ee4c351e403eab9a747559bb7fbfb50c8949b
|
|
| MD5 |
f130dbd0c54ab1c57f1c8a3a01c6e3dd
|
|
| BLAKE2b-256 |
3025dcce5f12cd87a949e8e50a2b61fb2f7d67a5345e78d6518c0f38f2058821
|
File details
Details for the file teamcity_messages_extra-1.1.0-py3-none-any.whl.
File metadata
- Download URL: teamcity_messages_extra-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb66ddf767a8d61e70cde4d767faa223e5ba7b10e4fdae6499c59750c85907a1
|
|
| MD5 |
d5af77d88de87f24afa4095ba81f3c4a
|
|
| BLAKE2b-256 |
e7cbe03b4ad72990b0025ee5997bca7fd78c973e6f1bf9e77274a724dc234c08
|