Full-stack BDD with cucumber-electron

Presented on Thursday Feb 23 2017 by Josh Chisholm

On the cucumber podcast from Feb 2017 Josh rants about the perils of testing through browser UIs and challenges the traditional advice of how many tests to write at each level of the test pyramid.

Running test automation and application code in the same process results in faster, more reliable tests that are easier to debug. This makes it practical to write more full stack tests and fewer unit tests, turning the pyramid upside down.

Josh introduces cucumber-electron, an open source tool he developed with the help of other Featurist developers, that allows running full stack tests in a single process. He goes on to talk about a few libraries that complement cucumber-electron: browser-monkey for DOM manipulation and assertions, and vinehill bridging the client-server gap instead of HTTP.

Finally he talks briefly about the future of full stack testing as he sees it, challenging the notion that asynchronous web apps necessarily imply asynchronous full stack tests.


Receive our occassional newsletter