Skip to content

test: continuous coverage - preferences, exceptions, content provider, actions#338

Closed
RoiSoleil wants to merge 6 commits into
masterfrom
test/all-coverage-batches
Closed

test: continuous coverage - preferences, exceptions, content provider, actions#338
RoiSoleil wants to merge 6 commits into
masterfrom
test/all-coverage-batches

Conversation

@RoiSoleil

Copy link
Copy Markdown
Contributor

Cumulative batch of tests added to reach higher coverage:\n\n- FolderCreationException: constructor + getFolder\n- FileContentProvider: elements, selection, children/parent\n- PreferencePages: constant IDs\n- NoDependenciesToMockException: class name in message\n- CreateTestMethodHierarchyAction: non-structured selection guard\n- NewTestCaseWizardParticipator: null guards, callbacks\n- 5 action classes (RunTestFromType, JumpFromType, etc.): selection guard\n- PreferencesPageSWTBotTest: opens Java language preference page

RoiSoleil added 6 commits July 3, 2026 00:32
…sses

Add unit tests for previously untested pure-logic classes:
- ContainerCreation: recursive parent/container creation, existence
  short-circuit, creation ordering and cancellation
- LanguagePreferencesReader/Writer: store value reading with defaults
  fallback, qualified-key writing, active state delegation
- Preference/BooleanPreference/StringPreference: plugin-id name prefixing,
  possible-value validation, default value registration
- TestAnnotationMode: method search mode exposure and OFF rejection
Add unit tests for previously untested classes:
- CreatedFolderPath: recursive first-folder deletion, non-ancestor
  cleanup, empty toString when no resource
- CorrespondingMemberRequest: builder defaults and configuration
  (method search mode, expected type, prompt text, class creation)
- SourceFolderMapping: 3-arg constructor, source list replacement and
  toString description
- FileTester: receiver/method guards and hasDefaultSupport delegation
- MoreUnitAnnotation: tested/ignored annotation factories
- Add RunTestSWTBotTest: open CUT, press Ctrl+R (MoreUnit Run Test),
  assert a launch is created via DebugPlugin
- Add Calculator.txt / CalculatorTest.txt resource files (JUnit5)
- Fix eclipse-latest.target: add org.eclipse.jdt.junit5.runtime
  (needed to launch JUnit 5 tests from the workbench)
- Fix swtbot.test MANIFEST: add org.eclipse.debug.core
  (for launch assertion via DebugPlugin)
- Update/Add Claude skills with build, test and coverage documentation
- Add MissingViewsSWTBotTest: opens the Show View dialog, expands MoreUnit
  category, selects view, asserts it opens
- Test Resource: MyClassWithMethods.txt / MyClassWithMethodsTest.txt
  (JUnit 5 partial test coverage scenario)
… and action

- FolderCreationException: constructor with CoreException and folder
- FileContentProvider: file list, default selection, children/parent
- PreferencePages: constant IDs validation
- NoDependenciesToMockException: class name in message, parent class
- CreateTestMethodHierarchyAction: non-structured selection guard
@RoiSoleil RoiSoleil closed this Jul 3, 2026
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.

1 participant