Commit Graph

1030 Commits

Author SHA1 Message Date
Alessio Bogon 421f87a605 Test against pytest 7.0 and python 3.10 2022-02-22 16:26:23 +01:00
Alessio Bogon 8fe2e4ff3c Execute step definitions as if they were pytest fixture.
This way we can get the same behaviour of yield-fixtures.
2022-02-22 16:12:54 +01:00
Kian-Meng Ang 6ac08b8777 Fix typos 2022-02-14 20:55:04 +08:00
pre-commit-ci[bot] 2f5fdd53fe [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-02-13 11:05:21 +00:00
Oleg Pidsadnyi c1df0d353e Fixing the lint 2022-02-13 12:05:03 +01:00
Oleg Pidsadnyi 162ab57379 Changelog updated 2022-02-13 11:56:12 +01:00
Oleg Pidsadnyi 496fabbd14 Scenario example validation restrictions removed. 2022-02-13 11:54:58 +01:00
Konstantin Goloveshko b05dbe0aec Update python environment
- Drop python 3.6 because of EOL
- Drop pytest<5 (Actually there wasn't reason to support 4.x version because they are about 3.4/2.7 python support, which already dropped)
- Fix source distribution build
2022-02-01 22:34:05 +02:00
Oleg Pidsadnyi 2fb5a11812 Updating the docs 2022-01-15 20:36:38 +01:00
pre-commit-ci[bot] 437bb6315d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-01-15 20:36:38 +01:00
Oleg Pidsadnyi 7cd7b40df3 Step arguments are no longer fixtures 2022-01-15 20:36:38 +01:00
Oleg Pidsadnyi 6730b428ed Removing the vertical examples support 2022-01-15 19:22:10 +01:00
Oleg Pidsadnyi e0a1437908 Feature examples removal. Compatibility with official gherkin 2022-01-15 19:07:11 +01:00
Kostiantyn Goloveshko f4ed62dcb4 Refuse combining of scenario outline and pytest parametrization
* Remove obsolete test
Discussed in #445, #448
2022-01-04 10:05:15 +01:00
Kostiantyn Goloveshko 62842c3563 Refuse combining of scenario outline and pytest parametrization
* Update documentation
Discussed in #445, #448
2022-01-04 10:05:15 +01:00
Oleg Höfling 5cb652e2d4
Merge pull request #468 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-12-27 23:03:55 +01:00
pre-commit-ci[bot] 70ff5e4da6
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
2021-12-27 21:12:11 +00:00
Oleg Höfling 2026dec01e
Merge pull request #461 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-12-12 13:03:04 +01:00
pre-commit-ci[bot] 85733ce41f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-12-06 21:12:42 +00:00
pre-commit-ci[bot] c1314d363f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.10b0 → 21.12b0](https://github.com/psf/black/compare/21.10b0...21.12b0)
- [github.com/pycqa/isort: 5.10.0 → 5.10.1](https://github.com/pycqa/isort/compare/5.10.0...5.10.1)
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1)
2021-12-06 21:11:00 +00:00
Alessio Bogon 048da9e87a
Merge pull request #458 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-11-14 18:17:30 +01:00
pre-commit-ci[bot] c06175a9c0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0)
- [github.com/pycqa/isort: 5.9.3 → 5.10.0](https://github.com/pycqa/isort/compare/5.9.3...5.10.0)
2021-11-08 20:17:28 +00:00
Oleg Pidsadnyi 6e421679b4 Release 5.0.0 2021-10-25 18:09:25 +02:00
Alessio Bogon 78cf86af32 Fix many types 2021-10-20 17:15:03 +02:00
Alessio Bogon 33729841eb Tell mypy to ignore libraries without stubs 2021-10-20 16:22:24 +02:00
Alessio Bogon 63c528fba3 Remove abomination 2021-10-20 16:22:00 +02:00
Alessio Bogon db0cd1f8cf Remove double import 2021-10-20 16:15:06 +02:00
Alessio Bogon 081413fabf Remove useless code 2021-10-20 16:14:45 +02:00
Alessio Bogon ef8845174a Add mypy to testing requirements and add mypy config 2021-10-20 16:14:16 +02:00
Alessio Bogon 88e397e30e Update python 3.10 2021-10-20 16:12:27 +02:00
Alessio Bogon 12dbf66f4d Disable type collection 2021-10-20 16:07:04 +02:00
Alessio Bogon bd3f8944d4
Merge pull request #451 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-20 15:33:22 +02:00
pre-commit-ci[bot] 61cd7c8e86
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0)
2021-10-04 19:49:45 +00:00
Alessio Bogon 42ac3a9bad Fix annotations 2021-10-01 20:58:35 +02:00
Alessio Bogon bd2f262a4d Add annotation 2021-10-01 20:53:59 +02:00
Alessio Bogon 4ddb257230 Get `pytest tests/` to work again 2021-10-01 20:51:59 +02:00
Alessio Bogon 7ab5aeeb2a Blindly add annotations using pyannotate. A lot to fix.
Commands run:
```
pytest tests/
pyannotate --py3 -w pytest_bdd tests
git add pytest_bdd tests
pre-commit run
```
2021-10-01 20:17:43 +02:00
Alessio Bogon cbabdf4210 Add configuration to collect types from pytest runs 2021-10-01 20:07:43 +02:00
Alessio Bogon 583910d88d
Merge pull request #444 from timgates42/bugfix_typos
docs: Fix a few typos
2021-10-01 20:01:23 +02:00
Alessio Bogon b94a8f1677
Merge branch 'master' into bugfix_typos 2021-10-01 19:33:51 +02:00
Alessio Bogon 1b53646145
Merge pull request #446 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-01 19:27:57 +02:00
pre-commit-ci[bot] bc7c209476 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-09-27 19:47:32 +00:00
pre-commit-ci[bot] 0f8bd3bab5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)
2021-09-27 19:44:28 +00:00
Alessio Bogon 379cb4b47c
Rewrite scenario/feature examples logic (#445)
* rewrite examples subsitution using templating

* Remove “example_converters”

* Remove "expanded" option. It's now the default

* Add utility functions to be able to inspect tests run by the pytester.

* use better timer

* Fix typos

* Fix and simplify tests

* Update to latest python 3.10 version

* Add isort configuration and pre-commit hook

* Fix imports

* Fix types

* Update changelog

* Update README (mainly fix typos, remove outdated options)

* Fix examples in README

* Remove python2 junk

Co-authored-by: Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>
2021-09-23 21:07:15 +02:00
Tim Gates 4d1c88a83a
docs: Fix a few typos
There are small typos in:
- README.rst
- pytest_bdd/cucumber_json.py
- pytest_bdd/reporting.py
- tests/feature/test_background.py
- tests/feature/test_feature_base_dir.py
- tests/scripts/test_main.py

Fixes:
- Should read `execution` rather than `excecution`.
- Should read `reporting` rather than `reportin`.
- Should read `precedence` rather than `precendence`.
- Should read `possibilities` rather than `possibilies`.
- Should read `outlines` rather than `oultines`.
- Should read `other` rather than `othe`.
- Should read `command` rather than `commmand`.
- Should read `background` rather than `backound`.
- Should read `alphanumeric` rather than `alphanumberic`.
2021-09-08 21:28:52 +10:00
Oleg Pidsadnyi c6b7134e59 Revert "Allows use <params> in parsers defined steps"
This reverts commit 7850f218b7.
2021-08-18 09:23:31 +02:00
Oleg Pidsadnyi 628f2e1f44 Revert "More tests for <params> in parsers defined steps"
This reverts commit 0590b7bf63.
2021-08-18 09:23:31 +02:00
Kostiantyn Goloveshko 0590b7bf63 More tests for <params> in parsers defined steps 2021-08-17 20:59:14 +02:00
Konstantin Goloveshko 7850f218b7 Allows use <params> in parsers defined steps
So parsers could parse values defined in Examples
2021-08-17 20:59:14 +02:00
Thomas Grainger c7faa9fa41
Merge pull request #436 from pytest-dev/graingert-patch-1
use py3.10 beta 4
2021-07-31 13:25:36 +01:00