Skip to main content

nose2-kflag

Only run tests which match a given substring

Overview

This package provides a nose2 plugin implementing the -k flag known from unittest discover. The plugin allows to select tests by specifying on or more substring patterns.

Patterns

Matching is performed against the full dotted name of each test. If a pattern is prefixed with ‘!’ its meaning is inverted, and only tests not matching the pattern will be selected. Multiple -K flags (plugin rules mandate uppercase) may be given. A test is selected if any of the given positive patterns and all of the given negative patterns apply. Patterns are case sensitive.

Examples

Run one test:

nose2 -K test_foo

Run one test of a specific test class:

nose2 -K FooTestCase.test_bar

Run all tests of a test class:

nose2 -K FooTestCase

Run all foo and bar tests except those in the functional directory:

nose2 -K foo -K bar -K '!functional'

Installation

pip install nose2-kflag

Then add the plugin to your nose2.cfg:

[unittest]
plugins = nose2_kflag

Changelog

1.0 - 2020-06-14

  • Initial release.

Metadata

Release files for nose2-kflag 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nose2-kflag 1.0
File Size Uploaded Provenance Actions
nose2-kflag-1.0.zip 13.8 kB Without provenance Details for nose2-kflag-1.0.zip

Built distribution (wheel)

Table of built distributions (wheels) for nose2-kflag 1.0
File Interpreter ABI Platform Actions
nose2_kflag-1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for nose2_kflag-1.0-py2.py3-none-any.whl

Total release size: 23.5 kB

Release files / nose2-kflag-1.0.zip

Download URL nose2-kflag-1.0.zip
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
987ec4f75ffa7ad5975eacb1d356057ea34ffdf49183c8b15ede8e6124120381
BLAKE2b-256 checksum
How to use checksums
48caed614cabd39bd0ce5485dff5142d2452fa7ed5cef104e85cc3b45606a3db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / nose2_kflag-1.0-py2.py3-none-any.whl

Download URL nose2_kflag-1.0-py2.py3-none-any.whl
Size 9.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4159be26b7b0a828d37116f0d3b4a0d70be15cc466e299cdff7e0823e2d24dba
BLAKE2b-256 checksum
How to use checksums
f07a3264cd207c88eb1624a2f266edc1bab914e32c3b2b7e88b8ff6dc415bced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Security for nose2-kflag 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page