Commit Graph

39 Commits

Author SHA1 Message Date
Alessio Bogon a1c92bdbe1 Add isort configuration and pre-commit hook 2021-09-19 00:19:24 +02:00
Alessio Bogon 9010a16f73 Fix test items ending with "[]" (for example, "test_scenarios.py::test_already_bound[]"). 2021-09-18 17:45:45 +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
Oleg Pidsadnyi 8008c0f4bc
Given step is no longer a fixture (#376)
* Removing strict gherkin.
* Update README.rst
* Update CHANGELOG
2020-07-01 11:57:00 +02:00
Jeongsoo Park d5cd4da93d fix incomparable tuple 2020-06-25 09:40:37 +02:00
Alessio Bogon 6047a35ef1 Apply `black` formatter to the codebase 2019-08-27 17:54:58 +02:00
James Harris b95e8e35c3 Fix pytest --generate --fixtures flag
This patch resolves the issues where pytest will try to double load the
pytest_cmd_main.
2019-08-23 21:51:40 +02:00
Alessio Bogon 386ed90cec
Fix item collection breaking when non Function items are present (#318)
* Fix item collection breaking when non Function items are present

* Bump version 3.2.1
2019-08-21 13:21:08 +02:00
Alessio Bogon 2226128936
Remove code that rewrites code (#309)
* Stop testing for old pytest and python versions

* Switch from pytest-pep8 to pycodestyle.

Pytest-pep8 received the last update in 2014, and it is now not working with pytest >= 4.5

* Explicitly state used markers

* Remove supposedly useless test

* Fix pytest missing markers definitions

* Fix pytest missing markers definitions

* Fix wrong command line usage

* Remove compatibility with ancient pytest

* Be more lenient when checking for failed test string

* Remove dead code
2019-08-20 10:49:20 +02:00
Milosz Sliwinski 216beadbcc Fixes #276: Added config stack to keep tests separation. Removed usage of deprecated pytest.config global variable 2019-02-11 09:51:40 +01:00
Milosz Sliwinski 7671290ad0 bdd_feature_base_dir renamed into bdd_features_base_dir 2018-10-18 10:59:28 +02:00
Milosz Sliwinski 6ce9c0c510 Do not call fixtures directly. bdd_feature_base_dir and bdd_strict_gherkin ini configs added. Pytest-bdd fixtures removed 2018-10-18 10:59:28 +02:00
Omer Katz 2e2b7a5c1b Merge branch 'ISSUE-139-gherkin-terminal-reporter' of git://github.com/spinus/pytest-bdd into ISSUE-139-gherkin-terminal-reporter 2016-09-18 11:19:46 +03:00
Oleg Pidsadnyi 3fbed30c9b Fixing a test 2016-06-22 09:53:33 +02:00
Florian Bruhin c53f7a7519 Add pytest_bdd_apply_tag hook 2016-06-21 18:27:02 +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
Oleg Pidsadnyi 94cba2a91c Trying to fix the tests 2016-01-24 01:11:03 +01:00
Oleg Pidsadnyi 1049452a2a Cleaned up hooks 2016-01-24 00:44:29 +01:00
Tomasz Czyż 620a41ec40 ISSUE-139 add gherkin terminal reporter 2015-12-26 23:32:49 +00:00
Florian Bruhin f75208d5f7 Use add_hookspecs instead of addhooks. See #154.
pluginmanager.addhooks was deprecated in pytest 2.8 and pluggy's add_hookspecs
should be used instead. Falling back to addhooks for older pytest versions.
2015-11-17 21:29:24 +01:00
Oleg Pidsadnyi 7fcd7e2eba Refactor of the feature step, reporting and fix for the multiline background steps. 2014-11-09 12:56:50 +01:00
Anatoly Bubenkov 9ef2a94d30 fix steps timings 2014-10-21 16:18:28 +00:00
Anatoly Bubenkov e0fc9064c9 prioritize-timing-hooks 2014-09-27 01:13:22 +00:00
Anatoly Bubenkov 47694d0299 BDD tests validation/generation helpers 2014-09-22 06:27:33 +00:00
Anatoly Bubenkov 5433bfeb61 Correct timing values for cucumber json reporting 2014-09-20 00:18:19 +00:00
Anatoly Bubenkov 0dd249c999 cucumber json timings added 2014-09-10 23:24:14 +00:00
Anatoly Bubenkov 0be8236a05 trace keyword implemented 2014-07-30 08:55:27 +00:00
Anatoly Bubenkov 014be2a2aa implemented cucumber tags 2014-07-27 13:27:46 +00:00
Anatoly Bubenkov b08d385352 correct reporting of exceptions 2014-07-25 22:32:18 +00:00
Anatoly Bubenkov 5aaf42e4b5 better reporting 2014-07-25 22:17:58 +02:00
Anatoly Bubenkov 5d5149801a serialize scenario info 2014-07-24 19:22:24 +02:00
Anatoly Bubenkov 1fe834170e pep fixes 2014-05-11 17:00:10 +02:00
Anatoly Bubenkov bc2c347d95 correct scenario saving 2014-05-11 14:02:43 +02:00
Anatoly Bubenkov 9f6ce33079 add scenario 2014-05-11 13:29:14 +02:00
Anatoly Bubenkov fd16428ab7 store item in the report 2014-05-11 13:18:43 +02:00
Anatoly Bubenkov c85094c1ab hooks initial implementation 2013-12-06 04:19:10 +01:00
Anatoly Bubenkov f05045c15d Scenario parametrization implemented. Coveralls integration. Coverage improvement 2013-08-10 03:32:25 +02:00
Anatoly Bubenkov dc3896cef6 Fix doc typo, rename the base dir fixture, avoid overfixturing the functions 2013-05-28 23:09:33 +02:00
Anatoly Bubenkov c4d110413d base path for feature files 2013-05-28 17:12:00 +02:00