如何在黄瓜表中测试未修剪的值

时间:2012-07-25 05:27:33

标签: testing cucumber whitespace

如何在场景概述的示例中测试未修剪的值,如“hola”(不带双引号)?

Examples:
  |Fullname|Email|Password|
  |       Felipe|felipe@gmail.com|1234567|
  |Felipe       |felipe@gmail.com|1234567|
  |   Felipe    |felipe@gmail.com|1234567|

1 个答案:

答案 0 :(得分:0)

IMO这是矫枉过正的。您不应该对不属于您的代码进行深入测试。一个例子就足以证明整合,例如:

Given I am adding a new person
When I fill in a name containing whitespace
Then the name should be saved with the whitespace stripped