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

Two stage test extension initialzation #377

Open
big-andy-coates opened this issue Dec 22, 2023 · 0 comments
Open

Two stage test extension initialzation #377

big-andy-coates opened this issue Dec 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@big-andy-coates
Copy link
Member

At the moment CreekTestExtension has a single initialize(api) method.

A new instance of the test extension is created and this method called:

  • once on system test start up to determine the set of model extensions that test extension adds. Other api calls are ignored.
  • once per test suite to initialise the extension for the test suite. Ideally, changes to the model should not be allowed here.

This should be split into two separate calls, taking different apis.

  • The first initialize call should take an api that allows the model to be setup. This method should return some kind of InitalizedExtension
  • the second call, e.g. InitializedExtension.setup(api) should take a different api, which has an immutable model, but allows listeners to be added, creek extensions to be created, etc.
@big-andy-coates big-andy-coates added the enhancement New feature or request label Dec 22, 2023
@big-andy-coates big-andy-coates self-assigned this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant