Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace Setup/Teardown hooks #2220

Open
timrijckaert opened this issue Dec 26, 2024 · 1 comment
Open

Workspace Setup/Teardown hooks #2220

timrijckaert opened this issue Dec 26, 2024 · 1 comment
Labels
enhancement New feature request or improvement of an existing feature Maestro

Comments

@timrijckaert
Copy link

Use case

We already have the option to hook into the setup and teardown of one test with the use of onFlowStart and onFlowComplete. #1206
However we notice as our code base is growing, we need to perform the same operation with every test.
For now we have a helper script that performs our setup and teardown and need to copy it in every single YAML file we create.

Proposal

There is already a more global configuration object.
I was wondering if something like this would be possible so we have a more global onFlowStart / onFlowComplete

flows:
  - "subFolder/*"
includeTags:
  - tagNameToInclude
excludeTags:
  - tagNameToExclude
onFlowStart:
  - runScript: "setup.js"
onFlowComplete:
  - runScript: "teardown.js"

Anything else?

No response

Copy link

linear bot commented Dec 26, 2024

@herval herval added the Maestro label Dec 30, 2024 — with Linear
@Fishbowler Fishbowler added the enhancement New feature request or improvement of an existing feature label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or improvement of an existing feature Maestro
Projects
None yet
Development

No branches or pull requests

3 participants