cucumber-attic / cucumber-ruby-tcl

Tcl bindings for Cucumber
MIT License
9 stars 6 forks source link

Wire protocol implementation? #36

Closed d-led closed 8 years ago

d-led commented 9 years ago
Feature: Wire protocol
   In order to specify behavior of embedded Tcl software
   As a responsible developer writing stuff in Tcl
   I want to be able to drive steps defined in Tcl via the Cucumber wire protocol

embedded, as in Tcl interpreter hosted in a native app (or even in Ruby), where tcl*.dll is not available

analysis

proposal, how it could work in principle: cucumber-tcl-wire

cucumber-lua

the lua implementation seems fine for the start

d-led commented 8 years ago

Here's a project demonstrating the wire protocol in principle.

@aslakhellesoy, @mattwynne : how would one go about to integrate the wire implementation into the official repo?

The reach of this library would be probably much larger, given linking to Ruby is not needed when using the wire protocol, and the potentially incompatible steps sourcing convention is not enforced.

In principle, the wire implementation only references framework.tcl.

The extensions to framework.tcl are also optional, and might be submittable separately (step source location, And step).

The test is currently quite implicit. Is there a standard way, the wire implementations are tested?

mattwynne commented 8 years ago

Interesting idea!

I think I'd start by building it in a separate repo, duplicating whatever code you need from this one. Then we can have a look at whether it makes sense to combine them into one repo somehow.

It will be easier to decide when there's some real code to look at.

d-led commented 8 years ago

@mattwynne and code there is https://github.com/d-led/cucumber-tcl-wire

Everything in the src folder would be the additional code. framework_extensions.tcl is a "diff" to framework.tcl, and server.tcl is the wire implementation

mattwynne commented 8 years ago

Great, OK. So is this ticket about making that repo official and bringing it under the cucumber organisation?

d-led commented 8 years ago

Yes, that would be great! I'd be happy if it can live and grow under the cucumber organisation, especially, synchronously with this (ruby-tcl) implementation.

mattwynne commented 8 years ago

@aslak_hellesoy can you take care of this, if you approve?

d-led commented 8 years ago

any progress on that?

aslakhellesoy commented 8 years ago

Hi @d-led

Thanks for offering to bring this under the Cucumber organisation!

If you make me an admin of the project I can move it over.

aslakhellesoy commented 8 years ago

It's done!

d-led commented 8 years ago

:+1: