Alessio Bogon
26adcc468a
Switch to GitHub actions ( #417 )
...
* Add github workflow for testing
* Add .editorconfig
* setup.py -> setup.cfg
* Remove .travis.yml
* Test on the python python 3.10 (alpha)
2021-04-16 09:27:31 +02:00
Alessio Bogon
123cd22701
Add entry to the changelog
2021-04-15 10:50:20 +02:00
Alessio Bogon
093e0a0855
Simplify test
2021-04-15 10:48:59 +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
Alessio Bogon
0d43cc4d9a
Merge pull request #410 from The-Compiler/docs
...
Drop the pytest dot
2021-03-29 15:30:43 +02:00
Florian Bruhin
5ed83fe4da
Drop the pytest dot
2021-03-29 12:04:35 +02:00
Alessio Bogon
5d58fe3bbb
Merge pull request #406 from elchupanebrej/actual_python_pytest
...
- Drop support of python 2.7, 3.5; Add explicit support for python >=3.6
- Remove six dependency
Co-authored-by: Konstantin Goloveshko <konstantin.goloveshko@collabio.team>
2021-03-02 19:24:50 +01: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
Alessio Bogon
7cb344ef64
Fix bug when using comments in the "Examples:" section ( #398 )
...
* Fix bug when using comments in the "Examples:" section
2020-12-07 13:38:07 +01:00
Alessio Bogon
02e667f239
Move Feature, Scenario, Step classes into the parser module ( #388 )
...
* Move the parsing logic to its own module
* Remove Feature.get_feature classmethod, in favour of the get_feature function on the feature module
2020-09-15 11:18:57 +02:00
Alessio Bogon
cba9a8ba90
Bump version 4.0.1
2020-09-08 12:03:15 +02:00
Alessio Bogon
a8c1ff4ff3
Fix performance regression from version 4.0.0 ( #386 )
...
* Fix performance issue when collecting tests.
* Add changelog entry
2020-09-08 11:59:01 +02:00
Alessio Bogon
6ca1df907b
Fix test not running at all
2020-09-08 09:25:39 +02:00
Alessio Bogon
99f8a5342a
Version 4
...
Do not include CHANGES.rst in the PyPI description, as we use custom sphinx extensions.
2020-09-07 11:18:39 +02:00
Alessio Bogon
853c615748
Support for pytest 6 "--import-mode=importlib" ( #384 )
...
* Fix compatibility with pytest 6 "--import-mode=importlib"
* Rewrite `scenario` and `scenarios` tests so that we can easily parametrize with the different pytest --import-mode.
* Update changelog
2020-09-07 09:43:29 +02:00
Alessio Bogon
882291524b
Merge pull request #383 from pytest-dev/update-pytests
...
Update pytests
2020-09-06 08:53:42 +02:00
Alessio Bogon
fc9adba38b
Blackify code
2020-09-05 20:17:25 +02:00
Alessio Bogon
4d99a5fdfe
Update pre-commit hooks
2020-09-05 20:11:49 +02:00
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
Alessio Bogon
d78eaace80
Fix test
...
(cherry picked from commit eba1d70fcc
)
2020-09-05 19:28:50 +02:00
Alessio Bogon
0408218680
Use compatibility function to assert outcomes
2020-09-05 19:05:57 +02:00
Alessio Bogon
29c8c69424
Add compatibility function to assert outcomes
2020-09-05 19:02:05 +02:00
Alessio Bogon
2736d87e4a
Add latest pytests to tox
2020-09-05 18:59:45 +02:00
Alessio Bogon
86e97624ac
wheel is deprecated. bdist_wheel should be used instead
2020-09-05 18:42:42 +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
6476ed4c74
Add test for multiline with triple double-quote characters
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
b466b7b6b2
Clean Readme 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
Alessio Bogon
f3b92bd2d5
Update CHANGES.rst
2019-11-23 15:16:31 +01: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
Florian Bruhin
3f1ba96c2d
Fix gherkin terminal reporter test flakiness ( #340 )
...
The test compares the output of two different reporters and tries to account for
the different runtime being printed. However, the output format changed with
pytest v5.1.0:
https://docs.pytest.org/en/latest/changelog.html#id76
This changes the regex to be a bit more permissive.
2019-11-20 22:19:18 +01:00
Alessio Bogon
76d4d876d6
Blackify scripts.py
2019-11-20 22:05:40 +01:00
Alessio Bogon
e87b756306
Update pythons and pytests
2019-10-21 12:48:27 +02:00
Alessio Bogon
100e907600
Update changelog
2019-10-20 18:55:36 +02: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
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
Alessio Bogon
f4dce04053
Use black for linters check.
2019-08-27 17:54:58 +02:00