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

Create a unit test format to test plugin configuration #9436

Closed
sspaink opened this issue Jun 24, 2021 · 0 comments
Closed

Create a unit test format to test plugin configuration #9436

sspaink opened this issue Jun 24, 2021 · 0 comments
Labels
testing request An issue that requires the tests to be updated

Comments

@sspaink
Copy link
Contributor

sspaink commented Jun 24, 2021

Plugins need a way to test the configuration to prevent regressions such as seen in this issue: #9413

Two possible approaches:

  • Have a unit test parse the sample config from the README.md associated with the plugin, and attempt to load it and compare it to the struct defined in the go file
  • Have the plugin generate the go struct and README.md from a sample config, requiring any updates to the config to be in one place
@sspaink sspaink added feature request Requests for new plugin and for new features to existing plugins testing request An issue that requires the tests to be updated and removed feature request Requests for new plugin and for new features to existing plugins labels Jun 24, 2021
@sspaink sspaink closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing request An issue that requires the tests to be updated
Projects
None yet
Development

No branches or pull requests

1 participant