olexale / bdd_widget_test

A BDD-style widget testing library
MIT License
101 stars 30 forks source link

Is it possible add multiples include imports on build.yaml? #36

Closed juanagu closed 2 years ago

juanagu commented 2 years ago

Hello, we want to import from our main app steps from different packages. Is it possible to do something like this:

includes:
 - package:feature_a/bdd_options.yaml
 - package:feature_b/bdd_options.yaml
olexale commented 2 years ago

Hey 👋 Not yet, currently only single options file is supported. I see why this might be useful, hence I believe it can be a nice improvement. Let's keep it as a feature request.

juanagu commented 2 years ago

Thanks @olexale, this feature will be really useful if the team is working on a feature package approach. We are writing BDD test per package. So this is our current schema:

olexale commented 2 years ago

@juanagu, this should work in 1.4.3. the syntax is the same as with steps:

include:
  - package:package_one/bdd_options.yaml
  - package:package_two/bdd_options.yaml

Would you please test?

olexale commented 2 years ago

I assume that it works, so I’m closing this ticket.