[openstreetmap/openstreetmap-website] Cucumber tests (#2545)

Tom Hughes notifications at github.com
Wed Feb 19 19:04:38 UTC 2020


I've always been somewhat puzzled by those sort of tests - you see them a lot of conference slides and things and I'd always wondered how on earth they actually worked.

Having now read some of the resources you pointed at I now understand - you have to write a whole pile of hidden matchers to translate that DSL into another DSL which is the real test language.

So I think I agree with you - the whole thing seems borderline insane to me. You wind up having to write more code because you have to write the "english" language test and then the translation layer to translate that to capybara or whatever and then you wind up with something that is, to my eyes at least, harder to understand and definitely harder to debug or enhance because of the need to work on both layers at once.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2545#issuecomment-588392033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200219/e29db033/attachment.htm>


More information about the rails-dev mailing list