| Summary: | [Tests] Migrate org.eclipse.jface.tests.databinding tests to JUnit 4 | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | UI | Assignee: | Conrad Groth <info> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | info, Lars.Vogel, nobody, simon.scholz, thibaultleouay |
| Version: | 4.5 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://git.eclipse.org/r/#/c/81857/ | ||
| Whiteboard: | |||
|
Description
Lars Vogel
Is a script changing my bug classification? If yes, can this be stopped? I use the tag [Tests] for bug work, if you want to add other tags, please add it after my tags. Simon I'm grabbing this if you don't mind as I plan to push this migration forward. No Problem Sopot. Thank you I committed a first-shot, to see how many failures Jenkins produces. I had only one left, I cannot understand. Jenkins doesn't have any test failures at all, but unfortunately it doesn't count those tests, I had to start via this workaround:
@Test
public void testSuite() throws Exception {
JUnitCore.runClasses(Suite.class);
}
@RunWith(AllTests.class)
public static class Suite {
public static junit.framework.Test suite() {
return ...
}
}
I reworked my patch again, so that all test cases are counted correctly and results are correctly forwarded to the overall build result. All suite() methods are now wired together by the BindingTestSuite class, which is executed by a JUnit38ClassRunner.´The suite() methods are executing several contract tests, which are placed in the bundle org.eclipse.jface.tests.databinding.conformance. These tests still have JUnit 3 style. Migrating those tests to JUnit 4 needs a refactoring and I didn't want to add more changes to my already huge patch. I can also work on that, but before I start working on that, the proposed patch has to be reviewed and merged. (In reply to Conrad Groth from comment #6) > I reworked my patch again, so that all test cases are counted correctly and > results are correctly forwarded to the overall build result. > > All suite() methods are now wired together by the BindingTestSuite class, > which is executed by a JUnit38ClassRunner.´The suite() methods are executing > several contract tests, which are placed in the bundle > org.eclipse.jface.tests.databinding.conformance. These tests still have > JUnit 3 style. Migrating those tests to JUnit 4 needs a refactoring and I > didn't want to add more changes to my already huge patch. > > I can also work on that, but before I start working on that, the proposed > patch has to be reviewed and merged. Thanks for the patch. I'll try to review this by end of working day. (In reply to Sopot Cela from comment #7) > (In reply to Conrad Groth from comment #6) > > I reworked my patch again, so that all test cases are counted correctly and > > results are correctly forwarded to the overall build result. > > > > All suite() methods are now wired together by the BindingTestSuite class, > > which is executed by a JUnit38ClassRunner.´The suite() methods are executing > > several contract tests, which are placed in the bundle > > org.eclipse.jface.tests.databinding.conformance. These tests still have > > JUnit 3 style. Migrating those tests to JUnit 4 needs a refactoring and I > > didn't want to add more changes to my already huge patch. > > > > I can also work on that, but before I start working on that, the proposed > > patch has to be reviewed and merged. > > Thanks for the patch. I'll try to review this by end of working day. Hi Sopot, how is the review going? Can I answer any questions? Thanks, Conrad. (In reply to Conrad Groth from comment #6) > ... The suite() methods are executing > several contract tests, which are placed in the bundle > org.eclipse.jface.tests.databinding.conformance. These tests still have > JUnit 3 style. Migrating those tests to JUnit 4 needs a refactoring and I > didn't want to add more changes to my already huge patch. > > I can also work on that, but before I start working on that, the proposed > patch has to be reviewed and merged. The o.e.jface.tests.databinding.conformance bundle needs to be migrated as well. I will work on that soon. Please set a target milestone again when you really plan to work on it. (In reply to Conrad Groth from comment #10) > (In reply to Conrad Groth from comment #6) > > ... The suite() methods are executing > > several contract tests, which are placed in the bundle > > org.eclipse.jface.tests.databinding.conformance. These tests still have > > JUnit 3 style. Migrating those tests to JUnit 4 needs a refactoring and I > > didn't want to add more changes to my already huge patch. > > > > I can also work on that, but before I start working on that, the proposed > > patch has to be reviewed and merged. > > The o.e.jface.tests.databinding.conformance bundle needs to be migrated as > well. I will work on that soon. org.eclipse.jface.tests.databinding is migrated, please open a new bug for jface.tests.databinding.conformance is you plan to work on it. |