rlisagor / freshen

Clone of the Cucumber BDD framework for Python
GNU General Public License v3.0
355 stars 56 forks source link

Adding support for empty entries in multi-lines tables #23

Closed guyd closed 13 years ago

guyd commented 13 years ago

It would be great to allow the parser to accept such syntax:

When I create a multi-line step with empty entries
   | name      | value       |
   | a name    | its value   |
   | empty     |             |
Then I expect the empty entries to be set to None

Currently, the only way to create empty entries in a table is to have a special keyword and to code logic for that keyword in the steps. Note that transforms provide a way to work around this limitation in Scenario Outline but this approach is unusable for multi-line tables.

rlisagor commented 13 years ago

This already works in the master branch, to be released as 1.0. I've added a test to make sure that this continues to work in the future.