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

Reorganize tests for plugins #1115

Merged
merged 3 commits into from
May 2, 2023
Merged

Reorganize tests for plugins #1115

merged 3 commits into from
May 2, 2023

Conversation

vladtr
Copy link
Contributor

@vladtr vladtr commented May 1, 2023

Currently we have different types of tests stored under a test folder for some plugins, e.g. chain_plugin and producer_plugin.

Some of these are proper unit tests of the plugin code in isolation. Those can remain in the folder but we should group them all together in a single executable rather than using different executable for each.

Some of these are bringing in other libraries and/or plugins and really should be considered integration tests (not to be confused with the Python end-to-end tests). These belong somewhere outside of the directories for the plugins. I suggest putting them in a sub-directory within the tests folder. It would also seem appropriate to bundle these tests together into one executable rather than linking separate executable for each test suite.

This PR reorganizes tests for the following plugins:
producer_plugin
chain_plugin
trace_api_plugin

Resolves #586

@vladtr vladtr linked an issue May 1, 2023 that may be closed by this pull request
@vladtr vladtr added this to the Leap v5.0.0-rc1 milestone May 1, 2023
@vladtr vladtr requested review from greg7mdp and linh2931 May 1, 2023 18:58
Copy link
Contributor

@greg7mdp greg7mdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vladtr vladtr merged commit 3bdf68e into main May 2, 2023
@vladtr vladtr deleted the GH-586-reorg-tests-plugins branch May 2, 2023 00:38
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.

Reorganize tests for plugins
3 participants