pkgxdev/pantry@f53024f
it seems like fixture should work the same at the top level (or be removed? except shared fixtures would suffer.) as it does in script steps.
related: it might be useful for top-level (and even step-level) fixtures to support a name key, and an array of objects. that'd allow for:
test:
fixture:
- {
- name: a
- extname: py
- content: print("fixture a")
}
- {
- name: b
- extname: py
- content: print("fixture b")
}
script:
- python $FIXTURE_a
- python $FIXTURE_b
though we don't need this (yet). but it does provide one possible way to get rid of fixtures/props in the git repo (by moving them into the yaml). if we did this, we might want to let fixtures and props be top-level keys, so they could be segregated to the bottom to prevent visual clutter.
thoughts and ideas.
pkgxdev/pantry@f53024f
it seems like
fixtureshould work the same at the top level (or be removed? except shared fixtures would suffer.) as it does in script steps.related: it might be useful for top-level (and even step-level) fixtures to support a
namekey, and an array of objects. that'd allow for:though we don't need this (yet). but it does provide one possible way to get rid of fixtures/props in the git repo (by moving them into the yaml). if we did this, we might want to let
fixturesandpropsbe top-level keys, so they could be segregated to the bottom to prevent visual clutter.thoughts and ideas.