[Plone-testing-team] p.a.widgets testing

Timo Stollenwerk tisto at plone.org
Sat Mar 1 11:19:25 UTC 2014


Am 01.03.2014 11:28, schrieb Asko Soukka:
> Awesome!
> 
> Gil Forcada wrote:
>> As Asko pointed me out during the Cathedral Sprint, currently is not
>> possible to reuse the same robot tests that can be found inside
>> p.a.widgets/tests folder on documentation, so I made a simpler version
>> of the tests for the documentation that actually just show the status
>> the widget.
> 
> Well, technically, we could make robot tests re-usable in docs, but that
> would too easily pollute tests with screenshot-related stuff, which
> again would defeat the purpose of using robot syntax: keeping our
> acceptance tests readable and easier to keep up-to-date.
> 
> So, to keep actual tests as readable as possible and to not let them
> restrict screenshots, it's easiest to keep them separate.
> 
> Something between would be to re-use the keywords defined in test suites
> in "tests" creating screenshots:
> 
> Resources  plone/app/widgets/tests/robot_widgets/tests_select_widget.robot
> 
> But still it looks weird to mix BDD-keywords with screenshot commands:
> 
> Give a form
> When ...
> Then capture and crop page screenshot ...
> 
> Currently for me it feels more clean to use BDD in tests, but write
> screenshot scripts without BDD.

+1 for keeping tests and screenshots separated and not use BDD in the
screenshot part.

Timo


More information about the Plone-testing-team mailing list