bdd_widget_test icon indicating copy to clipboard operation
bdd_widget_test copied to clipboard

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

Open juanagu opened this issue 3 years ago • 2 comments

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

juanagu avatar Oct 19 '22 11:10 juanagu

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.

olexale avatar Oct 19 '22 12:10 olexale

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:

  • bdd_test_core_package: Contains core shared steps
  • feature_a|b|c|d: Contains specific steps per feature
  • App: We need to import the steps from multiples features and also from core to be able to write Integration test and also some BDD widget test to verify that the integration that is doing the app works fine.

juanagu avatar Oct 20 '22 11:10 juanagu

@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 avatar Nov 12 '22 15:11 olexale

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

olexale avatar Nov 19 '22 08:11 olexale