Skip to content
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 debugoptions, hooks and resources in o.e.osgi.tests to JUnit 4 #454

Conversation

HeikoKlare
Copy link
Contributor

This migrates all tests in org.eclipse.osgi.tests.debugoptions, org.eclipse.osgi.tests.hooks.framework and
org.eclipse.osgi.tests.resource to JUnit 4

  • Add JUnit 4 annotations @Test, @Before, @After`
  • Remove inheritance of JUnit 3 TestCase and CoreTest
  • Replace try-catch for actual errors with making the test method throw the exception

Copy link

github-actions bot commented Dec 21, 2023

Test Results

     24 files  ±0       24 suites  ±0   11m 24s ⏱️ +27s
2 150 tests ±0  2 105 ✔️ ±0  45 💤 ±0  0 ±0 
2 194 runs  ±0  2 149 ✔️ ±0  45 💤 ±0  0 ±0 

Results for commit 752ffd9. ± Comparison against base commit 60a2e63.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the junit4-debugoptions_hooks_resources branch from 954b2e1 to 671d012 Compare December 21, 2023 12:18
@HeikoKlare HeikoKlare marked this pull request as ready for review December 21, 2023 12:18
@HannesWell HannesWell self-requested a review December 21, 2023 16:44
Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this too.

Looks good, just the addition of two unnecessary empty java-doc tags should be removed.

@HannesWell HannesWell force-pushed the junit4-debugoptions_hooks_resources branch from 671d012 to cbc12df Compare December 21, 2023 23:06
This migrates all tests in org.eclipse.osgi.tests.debugoptions,
org.eclipse.osgi.tests.hooks.framework and
org.eclipse.osgi.tests.resource to JUnit 4

* Add JUnit 4 annotations @test, @before, @after
* Remove inheritance of JUnit 3 TestCase and CoreTest
* Replace try-catch for actual errors with making the test method throw
the exception
@HeikoKlare HeikoKlare force-pushed the junit4-debugoptions_hooks_resources branch from cbc12df to 752ffd9 Compare December 22, 2023 07:57
Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you.

@HannesWell HannesWell merged commit 9eae0f7 into eclipse-equinox:master Dec 22, 2023
23 of 24 checks passed
@HeikoKlare HeikoKlare deleted the junit4-debugoptions_hooks_resources branch January 2, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants