-
Notifications
You must be signed in to change notification settings - Fork 175
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
Fix JUnit Parameterized Tests #2538
Comments
Hi, i want to work on this issue. |
Hi @nine03, Cheers, |
currently looking at TestSizeMeasureProcessor what are the values for these parameters @Parameterized.Parameter(1) @Parameterized.Parameter(2) @Parameterized.Parameter(3) |
Is it ok to use enums for this?? do we just need paremeterized inputs for org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.TestSizeMeasureProcessor#testSizeMeasureProcessor, (this is currently commented) . And Just make the test work??? |
would like to take on TestStringTimerProcessor |
Here you go: #2764 🙂 |
please assign the remaining Test classes to me |
@pambrocio issues are created (see at the top) |
Thanks @bossenti |
Hey @pambrocio, I just realized that some tests you have created PRs for are also part of #2375 (for reference: #2737, #2374). |
Any advice on this? |
Hi @tenthe @bossenti @IsaakKrut, the remaining classes have been migrated to Junit 5, Tell me what needs to be done to get my work merged to the main branch. Thanks, |
Actually, I already mentioned that earlier: #2754 (comment) Would you be interested to contribute to #2375 by adapting your migrated tests to the framework introduced there and help to improve it? If not, we can merge the migrated tests that are not part of #2375. Otherwise, we would cause a lot of migration effort in #2375. |
Hi @bossenti, Would love to. Let me check the discussion |
@pambrocio would be great if you are willing to continue your work based on #2375 (comment) 🙂 |
@bossenti, I am quite unclerar on what code changes need to be implemented |
In #2375 we introduced a standardized approach how pipeline elements can (and should) be tested in future (https://github.com/apache/streampipes/pull/2375/files#diff-a8a7ae4c9654c4422ef00768c7887a92bfffc6e0726c1922531f57ae865ee531). So the task now is to update your PRs accordingly. This includes updating your branch with the recent changes in the dev branch and change the implementation of the tests so that they use the above described approach. As @tenthe already said, this approach is not fixed yet, so if you have any feedback, improvements we are happy to hear and address them or you can directly improve the proposed approach. Does that make it clearer? 🙂 |
Description
Due to the update from JUnit4 to JUnit5, we had to deactivate some tests that do not use the JUnit5 syntax for parameterized tests. Below you will find a list of these tests that should be migrated step by step.
To see an example, I have started to migrate a first test (see
TestBooleanFilterProcessor
).If you are interested in working on one of the tests, please let us know and we will create an issue for each test and assign it to you.
List of classes
The text was updated successfully, but these errors were encountered: