chore: add plugin provisioning script for E2E tests #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to run our E2E tests, we require the provisioning yaml file to be in the
<rootDir>/provisioning
folder: https://github.com/grafana/grafana/blob/1d689888b0fc2de2dbed6e606eee19561a3ef006/packages/grafana-e2e/cypress/plugins/readProvisions.js#L12This is already set up for the build but if we want to debug the tests locally, we would also need this set up.
Adding this script so it can be automated and copied over in our plugins (or if there is some way to export this and use this actual script?) so in the package.json file, we can do something like:
This script expects the provisioning file name to be passed in so we only grab the one yaml file needed instead of the whole repository.
First time set up
File name not passed in
Invalid file name
Valid file name
Non-first time set up
File name not passed in
Invalid file name
Valid file name