Skip to content

Commit 5ed83fe

Browse files
committed
Drop the pytest dot
1 parent 5d58fe3 commit 5ed83fe

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ develop: .env
99
.env/bin/pip install -e . -r requirements-testing.txt tox python-coveralls
1010

1111
coverage: develop
12-
coverage run --source=pytest_bdd .env/bin/py.test tests
12+
coverage run --source=pytest_bdd .env/bin/pytest tests
1313
coverage report -m
1414

1515
test: develop

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
BDD library for the py.test runner
2-
==================================
1+
BDD library for the pytest runner
2+
=================================
33

44
.. image:: http://img.shields.io/pypi/v/pytest-bdd.svg
55
:target: https://pypi.python.org/pypi/pytest-bdd
@@ -730,7 +730,7 @@ scenario test, so we can use standard test selection:
730730

731731
.. code-block:: bash
732732
733-
py.test -m "backend and login and successful"
733+
pytest -m "backend and login and successful"
734734
735735
The feature and scenario markers are not different from standard pytest markers, and the `@` symbol is stripped out
736736
automatically to allow test selector expressions. If you want to have bdd-related tags to be distinguishable from the
@@ -739,7 +739,7 @@ Note that if you use pytest `--strict` option, all bdd tags mentioned in the fea
739739
`markers` setting of the `pytest.ini` config. Also for tags please use names which are python-compartible variable
740740
names, eg starts with a non-number, underscore alphanumberic, etc. That way you can safely use tags for tests filtering.
741741

742-
You can customize how hooks are converted to pytest marks by implementing the
742+
You can customize how tags are converted to pytest marks by implementing the
743743
``pytest_bdd_apply_tag`` hook and returning ``True`` from it:
744744

745745
.. code-block:: python
@@ -1084,27 +1084,27 @@ To have an output in json format:
10841084

10851085
::
10861086

1087-
py.test --cucumberjson=<path to json report>
1087+
pytest --cucumberjson=<path to json report>
10881088

10891089
This will output an expanded (meaning scenario outlines will be expanded to several scenarios) cucumber format.
10901090
To also fill in parameters in the step name, you have to explicitly tell pytest-bdd to use the expanded format:
10911091

10921092
::
10931093

1094-
py.test --cucumberjson=<path to json report> --cucumberjson-expanded
1094+
pytest --cucumberjson=<path to json report> --cucumberjson-expanded
10951095

10961096
To enable gherkin-formatted output on terminal, use
10971097

10981098
::
10991099

1100-
py.test --gherkin-terminal-reporter
1100+
pytest --gherkin-terminal-reporter
11011101

11021102

11031103
Terminal reporter supports expanded format as well
11041104

11051105
::
11061106

1107-
py.test --gherkin-terminal-reporter-expanded
1107+
pytest --gherkin-terminal-reporter-expanded
11081108

11091109

11101110

@@ -1136,7 +1136,7 @@ test execution. The code suggestion tool is called via passing additional pytest
11361136

11371137
::
11381138

1139-
py.test --generate-missing --feature features tests/functional
1139+
pytest --generate-missing --feature features tests/functional
11401140

11411141
The output will be like:
11421142

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
+ [("Programming Language :: Python :: %s" % x) for x in "3.6 3.7 3.8 3.9".split()],
4545
python_requires=">=3.6",
4646
install_requires=["glob2", "Mako", "parse", "parse_type", "py", "pytest>=4.3"],
47-
# the following makes a plugin available to py.test
47+
# the following makes a plugin available to pytest
4848
entry_points={
4949
"pytest11": ["pytest-bdd = pytest_bdd.plugin"],
5050
"console_scripts": ["pytest-bdd = pytest_bdd.scripts:main"],

0 commit comments

Comments
 (0)