lewismj / cucumber

Cucumber Test Framework & Plugin for SBT (BDD Testing in Scala)
Other
41 stars 18 forks source link

Allow specification for multiple paths for Cucumber.glue setting #34

Open nguyenuy opened 7 years ago

nguyenuy commented 7 years ago

As of now, we can only specify one path for the glue setting.

I'd like to provide a set of base classes for cucumber tests and another user running their own tests can use their own step definitions in addition to mine.

lewismj commented 7 years ago

I've had a few issues, firstly waiting for Cucumber version that was Scala 2.12 compatible. I've got an SBT 1.0 plugin out of the way, that allows overriding/setting environment variables, together with a quick house-clean of the code. I can't see why this wouldn't be easy to add, apologies for delays (busy with work/moving etc.) Will try to look into this shortly.

lewismj commented 7 years ago

I guess this is for the plugin? The runner allows you to spec in the build.sbt file: testOptions in Test += Tests.Argument(framework,"--glue","")

lewismj commented 7 years ago

Have you tried setting your unmanaged class path, e.g.

unmanagedClasspath in Test += baseDirectory.value / "src/test/features"

This should work in the runner framework.