scony / pytest-timeouts Goto Github PK
View Code? Open in Web Editor NEWLinux-only Pytest plugin to control durations of various test case execution phases
License: MIT License
Linux-only Pytest plugin to control durations of various test case execution phases
License: MIT License
throw TypeError
in situations when parsing is somehow impossible
strict
option disable custom unregistered markers, test allow us prevent incorrect work of extension when strict
will be active.
ToDo:
setup_timeout
markerteardown_timeout
markerDescribe the solution you'd like
Add tests and align code if needed
Describe the solution you'd like
Add coverage reports
[gw19] linux2 -- Python 2.7.11 /opt/python/x86_64/2.7.11-1/bin/python2.7
build/bdist.linux-x86_64/egg/pytest_timeouts.py:130: in pytest_runtest_setup
???
build/bdist.linux-x86_64/egg/pytest_timeouts.py:93: in fetch_timeout
???
build/bdist.linux-x86_64/egg/pytest_timeouts.py:145: in fetch_marker_timeout
???
E AttributeError: 'Function' object has no attribute 'iter_markers'
platform linux2 -- Python 2.7.11, pytest-3.1.2, py-1.4.33, pluggy-0.4.0
an opt and/or ini setting should be introduced to make it possible to change overrides order e.g.:
--timeouts-order='imo'
whould mean ini > marker > opt
Is your feature request related to a problem? Please describe.
we have a timeout feature in our code that also uses ITIMER_REAL
/SIGALRM
. we wrote a test for this which conflicts with this package, even when we disable the timeout with pytestmark = [pytest.mark.execution_timeout(0)]
Describe the solution you'd like
if a timeout is 0.0
, skip setting the signal handlers
Describe alternatives you've considered
๐คท
Additional context
Given A > B => A overrides B
, implement: opt timeout > marker timeout > ini timeout
Describe the bug
There are few typos in README.md, section "Usage" -> "pytest.ini setting":
[pytest]
setup_timeout = 2.5
execution-timeout = 2.01
teardown-timeout = 0
There are dashes instead of underscores in execution-timeout and teardown-timeout.
Expected behavior
[pytest]
setup_timeout = 2.5
execution_timeout = 2.01
teardown_timeout = 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.