-
Couldn't load subscription status.
- Fork 226
Migrate JUnit 4 tests to JUnit 5 in org.eclipse.jface.text.tests #3410
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
Conversation
Test Results 3 018 files 3 018 suites 2h 44m 53s ⏱️ For more details on these failures, see this check. Results for commit bd62671. ♻️ This comment has been updated with latest results. |
5db2220 to
2c6cc72
Compare
This commit fixes test failures introduced during the JUnit 5 migration in PR eclipse-platform#3410. Changes in FilteringAsyncContentAssistTests.java: - Changed import from org.junit.Ignore to org.junit.jupiter.api.Disabled - Replaced @ignore annotation with @disabled annotation and added reason message to properly skip the test - The test was failing because JUnit 5 does not recognize JUnit 4's @ignore annotation, causing a disabled test to run and fail Changes in ResourceInitialSelectionTest.java: - Migrated from JUnit 4 to JUnit 5 (file was missed in initial migration) - Updated imports: - org.junit.Assert → org.junit.jupiter.api.Assertions - org.junit.Before → org.junit.jupiter.api.BeforeEach - org.junit.After → org.junit.jupiter.api.AfterEach - Changed annotations: @before → @beforeeach, @after → @AfterEach - Fixed assertion parameter order for JUnit 5 (message parameter moved from first to last position) - All 13 tests now pass successfully Test Results: - FilteringAsyncContentAssistTests: 7 tests run, 0 failures, 1 properly skipped - ResourceInitialSelectionTest: 13 tests run, 0 failures, 0 errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
45cc945 to
b1b1a29
Compare
This commit fixes test failures introduced during the JUnit 5 migration in PR eclipse-platform#3410 for the org.eclipse.text.tests bundle. Changes: 1. Added missing JUnit 5 package import to MANIFEST.MF: - org.junit.jupiter.api.function (required for assertThrows) 2. Fixed assertEquals parameter order in TextEditTests.java: - JUnit 5 changed assertEquals signature from (message, expected, actual) to (expected, actual, message) - Fixed 61 assertions to use correct JUnit 5 parameter order 3. Fixed annotation in FindReplaceDocumentAdapterTest.java: - Changed @org.junit.Test (JUnit 4) to @test (JUnit 5) - This was preventing @beforeeach from running, causing null pointer errors All 578 tests now pass successfully (0 failures, 0 errors, 2 skipped). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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.
Looks pretty well, I only spotted 2 minor things
...t.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java
Show resolved
Hide resolved
This commit fixes test failures introduced during the JUnit 5 migration in PR eclipse-platform#3410 for the org.eclipse.text.tests bundle. Changes: 1. Added missing JUnit 5 package import to MANIFEST.MF: - org.junit.jupiter.api.function (required for assertThrows) 2. Fixed assertEquals parameter order in TextEditTests.java: - JUnit 5 changed assertEquals signature from (message, expected, actual) to (expected, actual, message) - Fixed 61 assertions to use correct JUnit 5 parameter order 3. Fixed annotation in FindReplaceDocumentAdapterTest.java: - Changed @org.junit.Test (JUnit 4) to @test (JUnit 5) - This was preventing @beforeeach from running, causing null pointer errors All 578 tests now pass successfully (0 failures, 0 errors, 2 skipped). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
b434f67 to
b8e017d
Compare
|
Yes, I fixed some non-running tests to add the range. But now the JDT's junit runner also has ranges so not entirely clearly what is needed where. I though it would be good to mention it... |
This commit fixes test failures introduced during the JUnit 5 migration in PR eclipse-platform#3410 for the org.eclipse.text.tests bundle. Changes: 1. Added missing JUnit 5 package import to MANIFEST.MF: - org.junit.jupiter.api.function (required for assertThrows) 2. Fixed assertEquals parameter order in TextEditTests.java: - JUnit 5 changed assertEquals signature from (message, expected, actual) to (expected, actual, message) - Fixed 61 assertions to use correct JUnit 5 parameter order 3. Fixed annotation in FindReplaceDocumentAdapterTest.java: - Changed @org.junit.Test (JUnit 4) to @test (JUnit 5) - This was preventing @beforeeach from running, causing null pointer errors All 578 tests now pass successfully (0 failures, 0 errors, 2 skipped). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
75794ca to
4a39f29
Compare
|
Update this PR to only include changes for org.eclipse.jface.text.tests |
|
No idea what this error message means: Tests run: 32, Failures: 0, Errors: 0, Skipped: 0 CoreSVG has logged an error. Set environment variabe "CORESVG_VERBOSE" to learn more. |
4a39f29 to
bd62671
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.
Use Claude code to implement fixes for both old issues, the fixes look good to me. |
bd62671 to
40763b6
Compare
No description provided.