Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Porting of nose-timer plugin for pytest. A timer plugin for pytest (how much time does every test take?).
To install the latest release from PyPI:
pip install pytest-timer
To install pytest-timer
with termcolor
for colored durations:
pip install pytest-timer[termcolor]
To install pytest-timer
with colorama
for colored durations:
pip install pytest-timer[colorama]
Or to install the latest development version from Git:
pip install git+git://github.com/skudriashev/pytest-timer.git
Or to install the latest from source:
git clone https://github.com/skudriashev/pytest-timer.git
cd pytest-timer
pip install .
You can also make a developer install if you plan on modifying the source frequently:
pip install -e .
After installing pytest-timer
plugin the following report will be added:
========================== pytest-timer ==========================
[success] tests/test_plugin.py::TestPlugin::test_loaded2: 0.0002s
[success] tests/test_plugin.py::TestPlugin::test_loaded: 0.0002s
n
slowest tests?For example, to show only the 10 slowest tests, run pytest with the --timer-top-n
flag:
pytest --with-timer --timer-top-n 10
In some cases, you may want to disable colors completely. This is done by using the --timer-no-color
flag.
This is useful when running tests in a headless console.
It is possible to filter results by color. To do so, you can use the --timer-filter
flag:
pytest --with-timer --timer-filter ok
pytest --with-timer --timer-filter warning
pytest --with-timer --timer-filter error
Or to apply several filters at once:
pytest --with-timer --timer-filter warning,error
pytest-timer
is MIT Licensed library.
FAQs
A timer plugin for pytest
We found that pytest-timer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.