forked from test_framework/pytest-bdd
trace keyword implemented
This commit is contained in:
parent
d89294b93a
commit
0be8236a05
|
@ -5,12 +5,8 @@ Changelog
|
||||||
-----
|
-----
|
||||||
|
|
||||||
- Implemented cucumber tags support (bubenkoff)
|
- Implemented cucumber tags support (bubenkoff)
|
||||||
|
|
||||||
|
|
||||||
2.2.0
|
|
||||||
-----
|
|
||||||
|
|
||||||
- Implemented cucumber json formatter (bubenkoff, albertjan)
|
- Implemented cucumber json formatter (bubenkoff, albertjan)
|
||||||
|
- Added 'trace' keyword (bubenkoff)
|
||||||
|
|
||||||
|
|
||||||
2.1.2
|
2.1.2
|
||||||
|
|
13
README.rst
13
README.rst
|
@ -580,6 +580,19 @@ There are no definitions of the steps in the test file. They were
|
||||||
collected from the parent conftests.
|
collected from the parent conftests.
|
||||||
|
|
||||||
|
|
||||||
|
Default steps
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Here is the list of steps that are implemented inside of the pytest-bdd:
|
||||||
|
|
||||||
|
given
|
||||||
|
* trace - enters the `pdb` debugger via `pytest.set_trace()`
|
||||||
|
when
|
||||||
|
* trace - enters the `pdb` debugger via `pytest.set_trace()`
|
||||||
|
then
|
||||||
|
* trace - enters the `pdb` debugger via `pytest.set_trace()`
|
||||||
|
|
||||||
|
|
||||||
Feature file paths
|
Feature file paths
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,12 @@ import os.path # pragma: no cover
|
||||||
|
|
||||||
import pytest # pragma: no cover
|
import pytest # pragma: no cover
|
||||||
|
|
||||||
|
from pytest_bdd import (
|
||||||
|
given,
|
||||||
|
when,
|
||||||
|
then,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture # pragma: no cover
|
@pytest.fixture # pragma: no cover
|
||||||
def pytestbdd_feature_base_dir(request):
|
def pytestbdd_feature_base_dir(request):
|
||||||
|
@ -56,3 +62,11 @@ def pytest_runtest_makereport(item, call, __multicall__):
|
||||||
}
|
}
|
||||||
|
|
||||||
return rep
|
return rep
|
||||||
|
|
||||||
|
|
||||||
|
@given('trace')
|
||||||
|
@when('trace')
|
||||||
|
@then('trace')
|
||||||
|
def trace():
|
||||||
|
"""Enter pytest's pdb trace."""
|
||||||
|
pytest.set_trace()
|
||||||
|
|
Loading…
Reference in New Issue