Skip to main content

py.test bugzilla integration plugin

Project description

py.test plugin to integrate it with bugzilla so that it’s possible to annotate tests with the identifier of the bug they’re testing.

If the bug has been closed but the test still fails, a warning is generated and if the bug is still open, the test is flagged as analysed (instead of Failed)

Usage

After installation (e.g. via pip install pytest-bugzilla) you can just invoke py.test as usual. The plugin is activated by default.

To disable it (eg. if your bugzilla installation is slow), you can use the –buzilla-disable command line option

Use py.test --help for additional options.

Annotating tests

To mark a test as being for a specific issue (say issue no. 12345), Put “#12345” somewhere in the test functions docstring e.g.:

def test_something():
  "This test is for bug #12345"
  do_test()

Bugzilla credentials

You can change the bugzilla server URL/username/password using command line options. You can edit the plugin file to change the defaults so that they work without having to pass these options explicitly.

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

pytest-bugzilla-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pytest-bugzilla-0.1.tar.gz.

File metadata

  • Download URL: pytest-bugzilla-0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-bugzilla-0.1.tar.gz
Algorithm Hash digest
SHA256 27e79a57bbf908d87655052c793a6d28cb92072fece73fcf90e7842eb5cb033d
MD5 90a69ec74ad15aa5a3725b0961bf396b
BLAKE2b-256 1ef6834e8cf04dc5c496ab25d220971c36bad8ed8190e074675b3308b220e52c

See more details on using hashes here.

Supported by

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