Sentido linha amarela

Quando quebramos a parede que nivela trajetórias temporais, passado torna lembrança viva via pensamento, aquela frase daquela música me faz pensar se realmente as vezes na minha mente acho isso…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Appendix 1 Using Cucumber with Other Platforms

The Cucumber Book, Second Edition — by Matt Wynne, Aslak Hellesøy, with Steve Tooke (126 / 136)

👈 What We Just Learned | TOC | Appendix 2 Installing Cucumber 👉

Although Cucumber started as a Ruby tool, it has grown to embrace many other platforms. This means you’re able to write your Cucumber step definitions in the same language you use for your production code and reach directly into your domain model if necessary. Explaining in detail how to use Cucumber to drive all of those platforms is beyond the scope of this book, but this appendix should give you some pointers where to look for more information.

If you’re interested in understanding how these tools work or writing your own, you could look into two main things: the Gherkin parser and the wire protocol.

Gherkin is the language you use to write Cucumber specifications, and it’s also a library[72] you can use to parse them. It uses Berp[73] to generate its code. At the time of writing, the Gherkin parser is released for the following platforms:

This allows you to build your own version of Cucumber on top of any of those platforms, and that’s how Cucumber-JVM, Cucumber-JS, and SpecFlow all work.

The second piece of the puzzle is Cucumber’s wire protocol. This allows Cucumber to invoke step definitions running in another process through a TCP socket. That process could be running on any machine and be written in any language. As we write this, Cucumber-CPP is the main user of the wire protocol, allowing developers to write step definitions in C++, and invoke them from Cucumber itself. Cucumber’s wire protocol is well documented, with examples, in Cucumber’s own features. See the Cucumber Wire Protocol source code [74] for details.

Footnotes

Copyright © 2017, The Pragmatic Bookshelf.

👈 What We Just Learned | TOC | Appendix 2 Installing Cucumber 👉

Add a comment

Related posts:

455. Rindu yang Terbalas

Malam itu Abi datang ke kamar Al. Lelaki yang sudah hampir tiga hari enggan keluar dari kamar, masih belum bisa menerima kenyataan jika ia benar-benar ditinggalkan. Lampu kamar dibiarkan mati, Abi…

Wavefront OBJ Files

Brace yourself for a fun challenge: build a photorealistic 3D renderer from scratch! It's easier than you think. In just a couple of weeks, build a ray-tracer that renders beautiful scenes with shadows, reflections, brilliant refraction effects, and subjects composed of various graphics primitives: spheres, cubes, cylinders, tri