-
Notifications
You must be signed in to change notification settings - Fork 113
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
Migrate Ant UI tests to JUnit 4 #753
Migrate Ant UI tests to JUnit 4 #753
Conversation
ec4a188
to
845c630
Compare
Test Results 591 files +57 591 suites +57 1h 4m 20s ⏱️ + 5m 24s Results for commit 8d389ac. ± Comparison against base commit 9802acd. This pull request removes 209 and adds 214 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
845c630
to
1d3a496
Compare
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.
Please add the missing license headers before this can be approved.
ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/RunInSeparateThreadRule.java
Show resolved
Hide resolved
...pse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/TestAgainExceptionRule.java
Show resolved
Hide resolved
1d3a496
to
6ed46f8
Compare
063e5ce
to
fed63fe
Compare
Most tests in org.eclipse.ant.tests.ui are subclasses of AbstractAntUITest, which is still based on JUnit 3 by implementing the TestCase class. This change does the following: * Migrates AbstractAntUITest and subclasses to JUnit 4 * Introduces TestName rules where necessary * Adds the TestAgainExceptionRule, which handles TestAgainExceptions indicating the necessity of test retries * Adds the RunInSeparateThreadRule, which runs the actual test code in a non-UI thread The newly introduced rules replace the overwritten runBare() method of the JUnit 3 tests in a reusable way.
fed63fe
to
8d389ac
Compare
@akurtakov I have added the missing license headers. Can this one be merged? |
Most tests in
org.eclipse.ant.tests.ui
are subclasses ofAbstractAntUITest
, which is still based on JUnit 3 by implementing theTestCase
class.This change does the following:
AbstractAntUITest
and subclasses to JUnit 4TestName
rules where necessaryTestAgainExceptionRule
, which handlesTestAgainExceptions
indicating the necessity of test retriesRunInSeparateThreadRule
, which runs the actual test code in a non-UI threadThe newly introduced rules replace the overwritten
runBare()
method of the JUnit 3 tests in a reusable way.