Commit Graph

263 Commits

Author SHA1 Message Date
Alessio Bogon ee05a101e9 drop compatibility with pytest < 3.0.0 2019-02-18 10:26:14 +01:00
Alessio Bogon 6cb8291be6 Bump version 3.0.2 2019-02-17 11:44:08 +01:00
Milosz Sliwinski 67c54dc185 UserWarning fixed in gherkin terminal reporter 2019-02-11 09:52:33 +01: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 fb44fc3a98 Fixes #273: Fix for unicode steps in gherkin reporter (#274)
* Fixes #273: Fix for unicode steps in gherkin reporter

* Test unicode step names in gherkin expanded mode

* Unnecessary encoding declaration in gherkin reporter test removed

* Fix unicode steps by using unicode_literals in gherkin_terminal_reporter.py
2018-12-16 12:08:44 +01: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
Milosz Sliwinski f7a30fc843 Update lowest required pytest version (#260)
* Update lowest required pytest version

* tox: Run tests for minimal version of pytest

* Bump version to 3.0.1. Update changelog
2018-11-01 22:05:45 +01:00
Alessio Bogon 7b0685e42d Bump version to 3.0.0, since we have incompatible changes 2018-10-18 13:15:36 +02:00
Milosz Sliwinski 7671290ad0 bdd_feature_base_dir renamed into bdd_features_base_dir 2018-10-18 10:59:28 +02:00
Milosz Sliwinski ed45c5e9fc Revert fix for getting the parser as it has been moved to separate pull request 2018-10-18 10:59:28 +02:00
Milosz Sliwinski 46644c390c Add feature_base_dir and strict_gherkin params to scenario and scenarios 2018-10-18 10:59:28 +02:00
Milosz Sliwinski 92a7e59675 Fix getting the parser from the lazy step function on latest pytest 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
Alessio Bogon 39f72977f9 Defer fixture wrapping of lazy_step_function
This will ensure that we attach parser and converters to the actual
function that pytest will discover when collecting fixtures.
2018-10-16 09:45:16 +02:00
Anthony Sottile 685ae80f10 Mostly factor out `py` module
Still used for `py.io.TerminalWriter` so I added it to `setup.py`
2018-07-07 15:30:03 -07:00
Anthony Sottile ce63d93152 Fix invalid escape sequences 2018-06-30 08:35:52 -07:00
Felix Yan 48a2af4318
Fix a typo in scripts.py 2018-06-09 02:11:19 +08:00
Oleg Pidsadnyi 5684b36532 Preparing release 2.21.0 2018-04-04 16:13:29 +02:00
Dmitry Kolyagin d1eaf99270 Add --gherkin-terminal-reporter-expanded option (#222) 2018-04-04 15:59:29 +02:00
Oleg Pidsadnyi 7c6ba36ffc
Fixes #201 and pytest compatibility. (#232)
* Fixes #201 and pytest compatibility.

* Review comments
2018-01-23 20:43:43 +01:00
Oleg Pidsadnyi 8c54f35518 bump version number 2017-11-06 10:26:10 +01:00
Michiel Holtkamp 2ab960a626 Fill in step names in cucumber report.
According to [1], when the outline scenarios are
reported in 'expand' mode, all the outlines will
be expanded to scenarios with their test results.
Also, the step name parameters are filled in.

This is a different mode than without 'expand'
mode[2], where the scenario outlines are reported
so the step names are not filled in and there are
no test results. The "examples" are reported in
this mode.

Since pytest-bdd does report the results of each
step of an outline scenario as separate scenarios,
it looks more like the 'expand' mode, so I've
added the filling in of the parameters in the
step names to make it more compliant.

[1] https://relishapp.com/cucumber/cucumber/docs/formatters/json-output-formatter#scenario-outline-expanded
[2] https://relishapp.com/cucumber/cucumber/docs/formatters/json-output-formatter#scenario-outline
2017-11-03 12:38:03 +01:00
Anatoly Bubenkov 11c6097836 prepare 2.18.2 release 2017-05-01 12:26:52 +02:00
Sergey Kraynev 5d40f2c28e Fix #210 do not raise wrong Error for no strict gherkin feature
The issue, that if user disable strict gherkin check, it will lead to
situation, when wrong Error be raised. For the current situation it was
a message, that Step is defined outside of Background section.

Current patch makes check for orphan steps more tolerant for features
without strict gherkin syntax.

Also README was updated to show explicitly, that using "When, Then" is
prohibited in "Background" section.
2017-04-27 09:37:22 +03:00
Thomas Wilgenbus b2e99a291b Fix typo in gherkin terminal reporter error message
Very small fix
2016-12-06 11:43:38 +01:00
Anatoly Bubenkov f48e4558c0 prepare 2.18.1 release 2016-11-05 11:28:59 +01:00
Adam Coddington 3b1539788d Relay fixture results to recursive call of 'get_features'. 2016-10-20 16:38:38 -07:00
Omer Katz 3d8447a6c0 Merge branch 'master' into ISSUE-139-gherkin-terminal-reporter 2016-09-20 09:02:27 +03: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
Florian Bruhin 14cc037c58 Don't parse scenario lines containing @ as tag 2016-09-15 17:39:28 +02:00
Florian Bruhin 2b4fc455c7 Increment version to 2.17.1 2016-08-21 16:05:31 +02:00
Bruno Oliveira 7f16bc93ea Last pytest 3.0 compatibility fixes 2016-08-19 16:47:56 +02:00
Florian Bruhin 27553d8222 Make fixture code pytest 3.0 compatible 2016-08-05 13:32:40 +02:00
Oleg Pidsadnyi 544c81f59e Fixing latest pytest compatibility 2016-07-21 22:05:16 +02:00
Florian Bruhin 8e89d04f19 Increment version to 2.17.0 2016-06-29 19:25:12 +02:00
Florian Bruhin 9b78948efa Allow spaces in tags 2016-06-29 19:21:55 +02: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 cc87b5b0dd Better error explanation for the steps defined outside of scenarios 2016-06-21 16:08:31 +02:00
Oleg Pidsadnyi de0f66754d Merge pull request #183 from The-Compiler/fixturedef
Fix FixtureDef signature for newer pytest versions
2016-06-21 09:16:22 +02:00
Florian Bruhin 28413e5793 Fix FixtureDef signature for newer pytest versions
In https://github.com/pytest-dev/pytest/pull/1586 the "yieldctx"
argument to FixtureDef was removed.

This uses utils.get_args to check if it's needed or not so pytest-bdd
works on pytest versions before and after that PR.
2016-06-17 10:56:57 +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
Tomasz Czyż c68e787e81 update readme/changes about gherkin-terminal-reporter 2016-01-25 23:45:34 +00:00
Oleg Pidsadnyi a7c38fe635 Fixing the test 2016-01-25 17:02:05 +01:00
Florian Bruhin b5738ad1e4 Allow tags after background section - fixes #160. 2016-01-24 19:52:05 +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 9bf74e893c Prepare 2.16.0 release. 2015-12-20 18:28:48 +01:00
Oleg Pidsadnyi 4aa2267742 Merge pull request #163 from The-Compiler/pytest28
Avoid deprecation warnings on pytest 2.8
2015-12-16 15:24:46 +01:00