Skip to content

feature: render common steps into every test case#38

Closed
soenkeliebau wants to merge 1 commit into
mainfrom
feat/common-test-steps
Closed

feature: render common steps into every test case#38
soenkeliebau wants to merge 1 commit into
mainfrom
feat/common-test-steps

Conversation

@soenkeliebau

Copy link
Copy Markdown
Member

Add a common-steps directory whose files are rendered into every generated test case, in addition to the test's own steps. This lets shared steps - such as a teardown that removes the product CRs before the namespace is deleted - live in a single place instead of being copied into each test.

The directory defaults to '<template_dir>/commons' (overridable via --common_dir) and is skipped if absent, so this is a no-op for repositories that do not opt in. Common files are templated identically to regular steps (.j2/.jinja2 rendered, others copied; NAMESPACE and lookup available) and are rendered after the test's own files.

Add a common-steps directory whose files are rendered into every generated
test case, in addition to the test's own steps. This lets shared steps - such
as a teardown that removes the product CRs before the namespace is deleted -
live in a single place instead of being copied into each test.

The directory defaults to '<template_dir>/commons' (overridable via
--common_dir) and is skipped if absent, so this is a no-op for repositories
that do not opt in. Common files are templated identically to regular steps
(.j2/.jinja2 rendered, others copied; NAMESPACE and lookup available) and are
rendered after the test's own files.
@soenkeliebau

Copy link
Copy Markdown
Member Author

Closed in favor off #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant