Use parameterized test for CamelCatalogVersionTest#795
Closed
apupier wants to merge 1 commit intocamel-tooling:mainfrom
Closed
Use parameterized test for CamelCatalogVersionTest#795apupier wants to merge 1 commit intocamel-tooling:mainfrom
apupier wants to merge 1 commit intocamel-tooling:mainfrom
Conversation
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
joshiraez
suggested changes
Jul 20, 2022
Contributor
joshiraez
left a comment
There was a problem hiding this comment.
Similar thing to what I said #792 although I don't think we need to go on a full TDD way in this file, it would still be useful that the data structure holding the information has all the information of the unit test and can be read at a glance
This way, we are losing a lot of valuable information in my opinion, just to avoid a bit of code duplication which I feel is not bad as they are different use cases at heart
| void testCompletionWithCatalog3xVersionLoaded() throws Exception { | ||
| camelCatalogVersion = "3.0.0-RC3"; | ||
| @ParameterizedTest | ||
| @ValueSource(strings = {"2.23.4", "3.0.0-RC3", "2.23.2.fuse-7_11_0-00037-redhat-00001"}) |
Contributor
There was a problem hiding this comment.
Without labels to understand what each string tests I really feel like we lose a ton of valuable information and, in case the test fails, it won't help us understand at all that each one is a different use case.
Member
Author
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


No description provided.