Commit Graph

300 Commits

Author SHA1 Message Date
Alessio Bogon 688c963dac Fix gherkin terminal reporter not displaying the test item location (a test was failing). 2020-09-05 20:04:25 +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
Oleg Pidsadnyi bfefabeb27
Some more test cleanup (#375)
* Some more test cleanup

* Docs updated
2020-06-24 09:24:04 +02:00
Oleg Pidsadnyi 76ed2ece2a
Cleanuptests2 (#370)
* Cleaning up tests

* Changelog entry
2020-06-18 08:36:12 +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 be94d2e55a Fix typo 2020-06-04 17:06:05 +02:00
Alessio Bogon 62f2d9d1aa Fix typo 2020-06-04 17:01:00 +02:00
Alessio Bogon 42a1e4ea21 Blackify 2020-06-04 17:01:00 +02:00
Alessio Bogon 4a39fd3a92 Parse multilines according to the gherkin specification (delimited by `"""` quotes) 2020-06-04 17:01:00 +02:00
Oleg Pidsadnyi 34bc88572b Preparing the release 3.3.0 2020-04-22 22:00:25 +02:00
Vitalii Buriak 65873276d3 Clean script file. 2020-04-22 14:51:17 +02:00
Vitalii Buriak 605ab1b453 Relax Gherkin validation for simple steps generator. 2020-04-22 14:51:17 +02:00
Vitalii Buriak b6786a0102 Possible to relax Gherkin validation for simple steps generator. 2020-04-22 14:51:17 +02:00
Mark Moes 36bd74b040 Implement parsing escaped pipe characters in outline parameters (#337)
* Implement parsing escaped pipe characters in outline parameters

* Use unicode_literals to fix test_outline error in Python 2
2019-11-23 15:11:03 +01:00
Alessio Bogon 76d4d876d6 Blackify scripts.py 2019-11-20 22:05:40 +01:00
Mark Moes 34b7f96b77 Escape quote in generation (#327)
* Escape single quotes in generated test names

* Escape single, double, triple-single and triple-double quoted (doc)strings in generated code
2019-10-20 18:53:29 +02:00
Hugo van Kemenade 9dc09bcd06 Fix for Python 4 and drop support for pytest < 4.3 (#332)
* Fix for Python 4

* Drop support for pytest < 4.3

* Update changelog and authors
2019-10-11 10:53:04 +02:00
Alessio Bogon d26411fe2e
Drop compatibility with pytest < 3.6 (#322)
* Remove support code for pytest < 3.6

* Update setup.py tags

* Require pytest>=3.6 from setup.py
2019-10-11 09:34:48 +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 398c50f70c Bump version 3.2.0 2019-08-20 11:07:11 +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
Florian Bruhin 0b6cc6518c Fix Python 3.8 support 2019-08-19 13:28:33 +02:00
Alessio Bogon 72a8764556 Bump version, update changelog 2019-07-08 11:55:49 +02:00
Blaise Kal 55069df7a7 Allow unicode type in given step names in Py 2
Allows the given step name to be unicode in Py2. 

Py 3 is not affected. It still does not allow non-ascii characters as they're not allowed in Py 2 `__name__`s.
2019-07-07 14:41:57 +02:00
Alessio Bogon dfed37115d Reorganize imports 2019-02-19 16:50:40 +01:00
Alessio Bogon 239a2e92a6 Bump version 3.1.0 2019-02-19 14:01:37 +01:00
Alessio Bogon c298a3edf5 Do not accept regex as step definitions 2019-02-19 13:59:09 +01:00
Alessio Bogon 744e855e01 Pass all the required arguments to hooks 2019-02-19 13:59:09 +01:00
Alessio Bogon 51fa93e9e1 Implicitly decode step definitions to unicode with utf-8 2019-02-19 13:59:09 +01:00
Alessio Bogon 61bf486ac2
Merge branch 'master' into generated-steps-raise-notimplemented 2019-02-18 10:53:02 +01:00
Alessio Bogon dbf2339e62 Remove compat function get_request_fixture_names 2019-02-18 10:26:14 +01:00
Alessio Bogon 7f4ba0315d Remove compat function 2019-02-18 10:26:14 +01:00
Alessio Bogon b411cfa463 (supposedly) drop compatibility with pytest < 3.3.2
The test suite still passes with all the pytests >= 3, so I wonder if I
actually broke the compatibility
2019-02-18 10:26:14 +01:00
Alessio Bogon ee05a101e9 drop compatibility with pytest < 3.0.0 2019-02-18 10:26:14 +01:00
Alessio Bogon eded49a2ae Generated step files should raise NotImplementedError 2019-02-17 18:08:38 +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