Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Load fixture parameters #21

Open
akomm opened this issue Sep 2, 2016 · 2 comments
Open

Load fixture parameters #21

akomm opened this issue Sep 2, 2016 · 2 comments

Comments

@akomm
Copy link
Contributor

akomm commented Sep 2, 2016

It looks like you can do this:

    Given the following fixtures files are loaded:
      | parameters.yml  |
      | dummies_1.yml  |
      | dummies_2.yml  |

Having:

parameters:
  param1: 'param 1 value'
  param2: 'param 2 value'

Two tiny issues here:

  1. Default bahavior when using just AliceBundle is that the parameters are automatically checked and loaded from fixtures path. Would it not make sense so that it behaves same here?
  2. Ability to load parameters via context that tells that fixtures are loading is not obvious, maybe an entry in readme.md would be useful?
@theofidry
Copy link
Owner

Default bahavior when using just AliceBundle is that the parameters are automatically checked and loaded from fixtures path. Would it not make sense so that it behaves same here?

It is not the case?

Ability to load parameters via context that tells that fixtures are loading is not obvious, maybe an entry in readme.md would be useful?

I've actually never tried it neither had the need of it so that's why it's missing. Would be perfectly cool with adding it to the doc.

@akomm
Copy link
Contributor Author

akomm commented Sep 2, 2016

I'v just grabbed my fixtures to try out this extension from bundle's DataFixtures to features/fixtures, including parameters.yml and found that they were not loaded. It is possible I will not need them too after adjusting, but a note is still okay I guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants