Commit Graph

123 Commits

Author SHA1 Message Date
David Röthlisberger 3243232fb0 bdd_features_base_dir is relative to pytest rootdir
The pytest rootdir is the directory containing pytest.ini (or similar):
https://docs.pytest.org/en/latest/reference/customize.html#rootdir

This allows you to run pytest when the current working directory isn't
the same as the directory containing the tests. I need to do that
because in my system, the directory containing the tests is on a
read-only filesystem.
2022-11-04 10:42:40 +00:00
Alessio Bogon 8facaaec5a Adjust text 2022-08-14 10:02:02 +02:00
Alessio Bogon 7327fc49ca Explain the trick 2022-08-13 12:01:46 +02:00
Alessio Bogon b914d9c757 Add documentation for programmatic step generation 2022-08-13 11:59:43 +02:00
Alessio Bogon a678cb403c Remove text that is always going to be outdated 2022-07-30 12:11:19 +02:00
Alessio Bogon 55f70cf934 Use dict literals in README.rst 2022-07-10 13:40:15 +02:00
Alessio Bogon 0cd4d14b88 Fix filename 2022-07-04 19:37:59 +02:00
Alessio Bogon a9bbf89822 Fix copy 2022-07-04 19:37:13 +02:00
Alessio Bogon c50e6a9fcf Fix copy 2022-07-04 19:35:15 +02:00
Alessio Bogon 1e7a715bdc Fix links and outdated documentation in README.rst 2022-07-04 19:28:32 +02:00
Alessio Bogon 503be823c9 Move the filenames in the code block itself. 2022-03-05 17:01:29 +01:00
Oleg Pidsadnyi 2fb5a11812 Updating the docs 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 62842c3563 Refuse combining of scenario outline and pytest parametrization
* Update documentation
Discussed in #445, #448
2022-01-04 10:05:15 +01: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
Alessio Bogon 2716593c47 Fix example 2021-07-03 10:05:27 +02:00
Alessio Bogon c3263c6abf Add documentation about `when`, `then` steps supporting target_fixture 2021-07-03 10:01:04 +02:00
Florian Bruhin 5ed83fe4da Drop the pytest dot 2021-03-29 12:04:35 +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
Oleg Pidsadnyi bfefabeb27
Some more test cleanup (#375)
* Some more test cleanup

* Docs updated
2020-06-24 09:24:04 +02:00
Vitalii Buriak b466b7b6b2 Clean Readme file. 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
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 c6b16b676b
Refactor code coverage configuration (#321)
* Switch from Coveralls.io to Codecov.io
* Use `coverage` directly instead of `pytest-cov`, it seems to solve issues
2019-08-27 18:16:15 +02:00
Milosz Sliwinski a8795dad78 Update outdated behat hyperlinks in documentation 2019-04-14 14:31:59 +02:00
Alessio Bogon 2a1c45166e
Remove usage of re.compile in example code 2019-02-19 14:21:41 +01:00
Alessio Bogon 956081cded
Update minimum pytest required version in README 2019-02-19 14:15:52 +01:00
Alessio Bogon 873cd82f7a Fix example code in the documentation
Fixes #236
2019-02-17 18:16:52 +01:00
Alessio Bogon dbd8ab98f6
Merge branch 'master' into patch-1 2019-02-16 19:14:40 +01:00
Milosz Sliwinski cb8114bbbe
Merge branch 'master' into fix_tags_tests 2019-01-13 11:07:28 +01:00
Milosz Sliwinski 07efb553d4 In tests use -m instead of -k for running tests by marker expressions 2019-01-10 10:46:38 +01:00
Andrea Cimatoribus 3ddd039666
Update README.rst
Co-Authored-By: bertold <bertold@users.noreply.github.com>
2019-01-07 09:03:36 -06:00
Andrea Cimatoribus 044a73754a
Update README.rst
Co-Authored-By: bertold <bertold@users.noreply.github.com>
2019-01-07 09:03:17 -06:00
Andrea Cimatoribus 19a3e60f73
Update README.rst
Co-Authored-By: bertold <bertold@users.noreply.github.com>
2019-01-07 09:03:00 -06:00
Andrea Cimatoribus 9abc1e2d4d
Update README.rst
Co-Authored-By: bertold <bertold@users.noreply.github.com>
2019-01-07 09:02:47 -06:00
Bertold Kolics f5aebaade9
Some wording changes to the introductory section 2019-01-04 12:26:22 -06:00
Pavel Karateev 617e85a05c
Remove odd bullet point 2018-11-22 19:54:23 +03:00
Milosz Sliwinski 9dd326ad5d Typo fixed in docs: strict_gherking->strict_gherkin 2018-10-29 16:22:56 +01:00
Alessio Bogon e9d1f11af3 Remove reason from documentation 2018-10-18 13:15:36 +02:00
Alessio Bogon 2dd8865361 Fix docs 2018-10-18 13:15:36 +02:00
Alessio Bogon 6b492d61d2 Update documentation 2018-10-18 13:15:36 +02:00
Pavel Karateev b5da92682a
Fix typo in feature definition
The feature doesn't match the step definition
2018-06-13 14:53:23 +03:00
Felix Yan 11df9bf712
Fix some typos in README 2018-06-04 03:06:41 +08:00
Oleg Pidsadnyi 5684b36532 Preparing release 2.21.0 2018-04-04 16:13: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
Michiel Holtkamp 2e6b9e680a Updated README, CHANGES and AUTHORS 2017-11-03 12:38:03 +01: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
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