Skip to main content

Python Unit Test Reporting to TeamCity (EXTENDED)

Project description

teamcity-messages-extra

license tests Current version on PyPi PyPI - Python Version

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

testMetadata service message

TeamcityServiceMessages.buildStatisticValue

buildStatisticValue service message

TeamcityServiceMessages.addBuildTag

addBuildTag service message

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

teamcity_messages_extra-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

teamcity_messages_extra-1.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file teamcity_messages_extra-1.1.0.tar.gz.

File metadata

File hashes

Hashes for teamcity_messages_extra-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b2c741bbe3b277bd512979a4e32ee4c351e403eab9a747559bb7fbfb50c8949b
MD5 f130dbd0c54ab1c57f1c8a3a01c6e3dd
BLAKE2b-256 3025dcce5f12cd87a949e8e50a2b61fb2f7d67a5345e78d6518c0f38f2058821

See more details on using hashes here.

File details

Details for the file teamcity_messages_extra-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teamcity_messages_extra-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb66ddf767a8d61e70cde4d767faa223e5ba7b10e4fdae6499c59750c85907a1
MD5 d5af77d88de87f24afa4095ba81f3c4a
BLAKE2b-256 e7cbe03b4ad72990b0025ee5997bca7fd78c973e6f1bf9e77274a724dc234c08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page