Skip to content

Step definitions as dynamic libraries #45

Closed
@paoloambrosio

Description

@paoloambrosio

It might be possible to compile and link step definition files to separate dynamic libraries, and load them selectively: https://gist.github.com/2303589

This will bring a better overall experience. Executing Cucumber-Cpp should be something like:

$ cucumber-cpp --tags mytag --glue libsteps1.so --glue libsteps2.so --format progress features/some.feature
----................

4 scenarios (4 passed)
16 steps (16 passed)
0m0.039s
$

It will start a wire server, load steps libraries, and run Cucumber. Every command line argument that is not understood by Cucumber-Cpp (--glue/-g) will be passed down to Cucumber. It might even autoconfigure the port by writing the wire file and adding it to the step_definitions while calling the Cucumber command line.

Edit: clarified that it's about dynamic libraries and not executing scenarios

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions