Commit Graph

31 Commits

Author SHA1 Message Date
Alessio Bogon 41c8ce6ce1 Tests for invalid table 2022-03-21 20:33:23 +01:00
Alessio Bogon be0679fa61 Simplify docstring def 2022-03-21 20:32:20 +01:00
Alessio Bogon 4bffdd20e5 Docstring errors! 2022-03-14 18:48:31 +01:00
Alessio Bogon 350f2ea4bb Add some error reporting! 2022-03-14 13:47:45 +01:00
Alessio Bogon 4ee87feaa8 Only "Givens" are allowed in "Background" 2022-03-13 23:05:46 +01:00
Alessio Bogon c9a9aebaf3 Actually invoke validation in tests 2022-03-13 22:15:48 +01:00
Alessio Bogon 8f9c26328d Add some validation logic.
Required only since we build objects (feature, scenario, etc.) incrementally, and we want to make sure we filled in everything correctly.
2022-03-13 22:09:38 +01:00
Alessio Bogon f73efac5b1 Datatables! 2022-03-13 20:37:45 +01:00
Alessio Bogon ef7d625ba9 Finally handle docstrings that have their own indentation level 2022-03-12 17:58:35 +01:00
Alessio Bogon 561b8ed32e Finally handle docstrings that have their own indentation level 2022-03-12 17:46:49 +01:00
Alessio Bogon 9c37f090e4 Step docstrings! (1 test still failing though) 2022-03-12 15:01:27 +01:00
Alessio Bogon e3e0cff492 Require "Scenario Outline" keyword for outlined scenario.
This should fix https://github.com/pytest-dev/pytest-bdd/issues/447
2022-03-12 12:41:16 +01:00
Alessio Bogon 260b7f2ef3 Keyword should be without trailing spaces 2022-03-11 20:16:42 +01:00
Alessio Bogon 99b61fdc8d More attrs 2022-03-11 19:42:48 +01:00
Alessio Bogon f095b45a9d According to gherkin specs, comments can only be on a new line 2022-03-11 16:10:58 +01:00
Alessio Bogon cc130b6e19 Fix tags, and no need for space at the end of the keyword 2022-03-10 16:03:25 +01:00
Alessio Bogon ea96c49219 Fix typing 2022-03-10 15:44:18 +01:00
Alessio Bogon 10ce8a5256 Fix example cells 2022-03-10 15:22:14 +01:00
Alessio Bogon 67d793d3da Examples! (still a failing test in case there is an escaped pipe [skip pre-commit.ci] 2022-03-09 16:45:30 +01:00
Alessio Bogon cbfc24d34a Allow arbitrary indentation for the "Feature:" token [skip pre-commit.ci] 2022-03-09 15:40:22 +01:00
Alessio Bogon b24b3b3a9e feature description! 2022-03-09 15:06:37 +01:00
Alessio Bogon 559c0f9050 tags in feature and scenario 2022-03-08 11:21:02 +01:00
Alessio Bogon 31af2970e3 support feature background 2022-03-08 10:45:14 +01:00
Alessio Bogon 5fedd7d7fc support comments! and remove docstring and data_table for now 2022-03-06 14:54:54 +01:00
Alessio Bogon 275f98da0d "And" steps! 2022-03-06 13:16:56 +01:00
Alessio Bogon 1494d5ab39 Fixes after the merge 2022-03-05 19:17:04 +01:00
pre-commit-ci[bot] c15669e552 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-03-05 16:34:23 +00:00
Alessio Bogon e43fd153bc Step docstrings and datatables! 2020-09-15 14:57:27 +02:00
Alessio Bogon 4e0cbb0659 Test some real usage of the new parser! 2020-09-15 11:41:33 +02:00
Alessio Bogon 0d447dc738 Basic tests for the new parser! 2020-09-15 11:15:55 +02:00
Alessio Bogon 37a4ce061a Move new parser out of the parser directory 2020-09-15 10:22:57 +02:00