-
Notifications
You must be signed in to change notification settings - Fork 79
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
Further clean-ups and simplifications of smartimport-tests #743
Further clean-ups and simplifications of smartimport-tests #743
Conversation
Test Results 258 files - 6 258 suites - 6 37m 37s ⏱️ - 6m 32s For more details on these failures, see this check. Results for commit ec0a0c0. ± Comparison against base commit 912012e. This pull request removes 4 and adds 4 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now imagine someone to convert it to parameterized test so it becomes single class
Good idea! And since that test-plugin then only contains one class, I think we can just move that test and its resources to the pde.ui.tests Plugin. |
b1aa820
to
a44cc24
Compare
ui/org.eclipse.pde.ui.tests/src/org/eclipse/ui/tests/smartimport/ProjectSmartImportTest.java
Outdated
Show resolved
Hide resolved
I strongly believe that incremental improvements are better than trying to do everything it once. E.g. push PR that makes this one single class test and leave the move to pde.ui for another PR . Over the years many such "small" improvements got lost after staling in a bigbang change . |
a44cc24
to
a1ca235
Compare
In general I agree, but in this case I had the changes ready locally and just wanted to submit #745 before to not have to adjust the test-suites twice. For me this is now ready. |
Generalize redundant code into the template class. Replace the o.e.pde.ui.tests.smartimport/pom.xml by the still required pom.model. configuration in the build.properties (many properties were obsolete anyway). Follow-up on "Rewrite smartimport test as plain JUnit test"
And delete the now empty o.e.pde.ui.tests.smartimport.
a1ca235
to
ec0a0c0
Compare
parameterized JUnit5 test :-)
If its a plain JUnit test you can even move it inside the plugin that is tested into a separate |
Migrating to JUnit5 is really something I would lime to do (in the near? future). |
No issue with using JUnit 5 AFAIK. https://github.com/eclipse-platform/eclipse.platform.ui/tree/master/tests/org.eclipse.e4.ui.tests.css.core is one bundle that is exclusively JUnit 5 including @suite usage. |
Then probably we should open an issue about the issues to track the possible issue :-) |
Generalize redundant code into the template class.
Replace the o.e.pde.ui.tests.smartimport/pom.xml by the still required pom.model. configuration in the build.properties (many properties were obsolete anyway).