Commit Graph

13 Commits

Author SHA1 Message Date
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
Alessio Bogon cdb1bdada9
Add `pyupgrade` tool to pre-commit hooks (#416)
* `pyupgrade --py36-plus tests/**/*.py pytest_bdd/**/*.py setup.py`

* add pyupgrade to pre-commit config
2021-04-16 09:35:49 +02:00
Konstantin Goloveshko e1dc0cad9a Update python and pytest
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
- Simplify getting step parser strategy; If step could be stringified it could be used
- Respect pytest --strict option in tests
2021-03-02 19:08:00 +02:00
Alessio Bogon 02e667f239
Move Feature, Scenario, Step classes into the parser module (#388)
* Move the parsing logic to its own module

* Remove Feature.get_feature classmethod, in favour of the get_feature function on the feature module
2020-09-15 11:18:57 +02:00
Oleg Pidsadnyi 6ba231fbe3
Converting tests (#367)
* Converting tests to use the correct pytest methodology for plugins
2020-06-14 12:16:09 +02:00
Alessio Bogon 6047a35ef1 Apply `black` formatter to the codebase 2019-08-27 17:54:58 +02:00
Milosz Sliwinski 5678a5c84e Do not use deprecated MarkInfo objects on pytest>=3.6 (#262)
* Do not use deprecated MarkInfo objects on pytest>=3.6

* Provide way to get all parametrize args, not only the ones from the closest marker

* Fix for remaining tests that were using depracated MarkInfo objects
2018-11-14 10:24:04 +01:00
Dmitry Kolyagin d1eaf99270 Add --gherkin-terminal-reporter-expanded option (#222) 2018-04-04 15:59:29 +02:00
Oleg Pidsadnyi be79c1d534 Cleaned up hooks of the plugin, fixed report serialization to use builtin types. 2016-03-19 00:54:03 +01:00
Florian Bruhin 1d1d8063ec Use hookwrapper instead of __multicall__. See #154. 2015-11-17 21:25:33 +01:00
Anatoly Bubenkov 342e02dc99 Add examples data in the scenario report. closes #145 2015-08-31 16:38:52 +02:00
Oleg Pidsadnyi 9bbb69d33b Fix error reporting 2014-11-19 17:24:47 +01:00
Oleg Pidsadnyi 8a53f32348 New files added. 2014-11-09 13:04:46 +01:00