Alessio Bogon
4292aec408
Remove unused method
2022-03-03 12:43:59 +01:00
Alessio Bogon
644df2ee52
Use newer typing syntax
2022-02-24 16:00:36 +01:00
Alessio Bogon
021aa3a2e3
Use "from __future__ import annotations" to be less verbose
2022-02-24 15:32:20 +01:00
Alessio Bogon
4fd1ab950c
Merge remote-tracking branch 'origin/master' into add-type-annotations
...
# Conflicts:
# pytest_bdd/parser.py
# pytest_bdd/scenario.py
2022-02-24 14:04:24 +01:00
Alessio Bogon
512fd0f690
Update pre-commit config
2022-02-24 12:45:07 +01:00
Alessio Bogon
78cf86af32
Fix many types
2021-10-20 17:15:03 +02:00
Alessio Bogon
42ac3a9bad
Fix annotations
2021-10-01 20:58:35 +02:00
Alessio Bogon
7ab5aeeb2a
Blindly add annotations using pyannotate. A lot to fix.
...
Commands run:
```
pytest tests/
pyannotate --py3 -w pytest_bdd tests
git add pytest_bdd tests
pre-commit run
```
2021-10-01 20:17:43 +02: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
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
marcbrossaissogeti
3a730e4dcc
cast "values" as a string because it could be another type if using e… ( #335 )
...
* cast "values" as a string because it could be another type if using example converters
* Test for int string and float value
Co-authored-by: Marc BROSSAIS <marc.brossais@capgemini.com>
Co-authored-by: Alessio Bogon <youtux@users.noreply.github.com>
2021-04-15 10:45:24 +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
76ed2ece2a
Cleanuptests2 ( #370 )
...
* Cleaning up tests
* Changelog entry
2020-06-18 08:36:12 +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
6047a35ef1
Apply `black` formatter to the codebase
2019-08-27 17:54:58 +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
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
Oleg Pidsadnyi
be79c1d534
Cleaned up hooks of the plugin, fixed report serialization to use builtin types.
2016-03-19 00:54:03 +01:00
Anatoly Bubenkov
d1fa804426
Pluggable parsers for step definitions. closes #91
2015-01-07 16:26:20 +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
5433bfeb61
Correct timing values for cucumber json reporting
2014-09-20 00:18:19 +00:00
Oleg Pidsadnyi
1748de1fe7
version bumped
2014-09-11 22:06:54 +02:00
Anatoly Bubenkov
0dd249c999
cucumber json timings added
2014-09-10 23:24:14 +00:00
Anatoly Bubenkov
7fcfb20f33
implemented cucumber tags
2014-07-27 13:31:38 +00:00
Anatoly Bubenkov
76be97293f
unicode fixes
2014-07-25 22:59:23 +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
9f24385897
use filename instead of name which can be empty #ep14boat
2014-07-24 20:46:00 +02:00
Anatoly Bubenkov
5d5149801a
serialize scenario info
2014-07-24 19:22:24 +02:00
albertjan
8f970bd7b8
comma added
2014-05-11 18:17:17 +02:00
Anatoly Bubenkov
79b40fb153
pep fixes
2014-05-11 17:08:56 +02:00
Anatoly Bubenkov
56d2782b51
pep fixes
2014-05-11 17:04:41 +02:00
Anatoly Bubenkov
3f5da0f4a0
pep fixes
2014-05-11 17:02:11 +02:00
Anatoly Bubenkov
f1bf4bc11a
pep fixes
2014-05-11 17:00:57 +02:00
Anatoly Bubenkov
1fe834170e
pep fixes
2014-05-11 17:00:10 +02:00
albertjan
02989bb40b
Merge branch 'cucumber-json-formatter' of https://github.com/albertjan/pytest-bdd into cucumber-json-formatter
2014-05-11 16:51:54 +02:00
albertjan
fce9aabbd0
changes according to @dimazest
2014-05-11 16:51:12 +02:00
Anatoly Bubenkov
34a4ac65dd
Merge branch 'cucumber-json-formatter' of github.com:albertjan/pytest-bdd into cucumber-json-formatter
2014-05-11 16:47:59 +02:00
Anatoly Bubenkov
62898e5a00
PR
2014-05-11 16:47:37 +02:00
albertjan
4ed618ee96
clean up and use rel path
2014-05-11 16:40:44 +02:00
albertjan
18ae4c981b
cleans some stuff up
2014-05-11 16:28:23 +02:00
albertjan
faa5ececc1
corrects the reference
2014-05-11 16:15:11 +02:00
albertjan
504d722864
makes the keyword nice
2014-05-11 16:05:13 +02:00
albertjan
fe499437bb
change name of scenario
2014-05-11 15:52:34 +02:00
albertjan
c2dd06f08f
rename tests to features
2014-05-11 15:41:05 +02:00
albertjan
052e74e37a
adds description
2014-05-11 15:39:29 +02:00
albertjan
1f62168f1f
add feature hash
2014-05-11 15:39:29 +02:00
albertjan
70472f3117
cast reprcrash to string skip if there are no steps
2014-05-11 15:08:39 +02:00
albertjan
870c69f6d8
map each step
2014-05-11 14:58:19 +02:00
albertjan
fe5611460b
Just get the status
2014-05-11 14:39:54 +02:00