Skip to main content

nose-terse-output

Really terse output from your nose tests. Just the bare essentials.

Nose-terse-output is inspired by nose-machineout. It’s a reporter plugin to nose that doesn’t produce any output if a nose test run is successful, and only produce one line per error in a format that is easily parseable by editors, like VIM.

Nose’s error messages are really hard for tools, like text editors, to parse in order to navigate to the location of the error. nose-terse-output takes that output and parses it to produce one line of information per failed test. That line has the format:

<path>:<line>: <error message>

That’s a whole lot easier for a text editor to parse.

nose-terse-output accomplishes this by starting at the bottom of the call stack for the error, and walk upwards until it finds the first location that looks interesting.

By default, the first stack frame that comes from the same basepath as the current directory and that doesn’t match ‘python’ or ‘venv’ will be selected as the location of the failing test.

You can change the patterns of paths to ignore when walking the stack with the –terse-ignore argument. You can use –terse-ignore several times. You can also tell nose-terse-output that it’s ok to consider non local directories by using the –terse-outside-local argument.

Default output from a failing test run:

$ nosetests --with-terseout
path/to/test.py:123: test name: 'foo' != 'bar'

To get a compact print out of the stack as well:

$ nosetests --with-terseout --terse-stack

To supply your own directories you’d like to ignore:

$ nosetests --with-terseout --terse-ignore="venv" --terse-ignore="helpers"

To consider non-local directories:

$ nosetests --with-terseout --terse-outside-local

Install with:

$ pip install nose-terse-output

Metadata

Release files for nose-terse-output 1.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 nose-terse-output 1.1.0
File Size Uploaded Provenance Actions
nose-terse-output-1.1.0.tar.gz 3.1 kB Without provenance Details for nose-terse-output-1.1.0.tar.gz

Release files / nose-terse-output-1.1.0.tar.gz

Download URL nose-terse-output-1.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b21b0beb2589c9efac7d408a9205fbca9c6bc4a4ee4b94fd9cd992fb2b253856
BLAKE2b-256 checksum
How to use checksums
ef00f1102edf11dbe4d30f65702b98bb7e7896247a3458dd9ce286fdc728e582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nose-terse-output 1.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.

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