Commit Graph

827 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 acbd1ee7dd Add test 2022-03-12 18:06:11 +01:00
Alessio Bogon 28a58ee23f What is that _NL doing there?? 2022-03-12 17:59:10 +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 f3d383d17d Test punctuation in tags 2022-03-12 13:04:05 +01:00
Alessio Bogon 4bcdba4afa Steps and Feature are not hashable, don't attempt to put them in a set for no reason 2022-03-12 12:49:52 +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 a10e93a1d9 Use dataclass instead of attrs, one less dependency.
Unfortunately, we can't get rid of Step.__init__
2022-03-11 20:54:27 +01:00
Alessio Bogon 163a01547b Fix tests 2022-03-11 20:28:26 +01:00
Alessio Bogon ad86cfeda6 Fix tests 2022-03-11 20:24:13 +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 a6523e020a Use attrs and implement test comprehensively 2022-03-11 19:20:00 +01:00
Alessio Bogon c3605ec4eb Fix test 2022-03-11 16:27:31 +01:00
Alessio Bogon 2f0c851e7e Fix test 2022-03-11 16:22:44 +01:00
Alessio Bogon ac11610893 Add change 2022-03-11 16:21:35 +01:00
Alessio Bogon 9fe746c1ff Fix tests 2022-03-11 16:21:06 +01:00
Alessio Bogon cdbf1a519d Add "But " keyword 2022-03-11 16:20:56 +01:00
Alessio Bogon 4778cf577c Fix tests 2022-03-11 16:16:01 +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 e15cebdec7 Fix wrong examples 2022-03-10 16:07: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 27b7e9930d Scenario outline 2022-03-10 15:53:48 +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 1a3dd4e9f4 Disable trailing-whitespace linter, as it's creating problem when testing files with weird whitespaces on purpose 2022-03-09 16:53:06 +01:00
Alessio Bogon c7b00c6248 Examples! (still a failing test in case there is an escaped pipe [skip pre-commit.ci] 2022-03-09 16:49:08 +01:00
pre-commit-ci[bot] 8ca8f60dbb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-03-09 15:45:57 +00:00
Alessio Bogon 0868325837 Merge remote-tracking branch 'origin/rewrite-parser' into rewrite-parser 2022-03-09 16:45:46 +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
pre-commit-ci[bot] 7fac70103d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-03-09 14:40:42 +00: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 ded11898d1 Fix test 2022-03-09 15:23:48 +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 d4e598955d Do not require "\n" at the end of file 2022-03-06 13:59:34 +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
Alessio Bogon 615b247bed Fix types 2022-03-05 17:44:14 +01:00