Skip to content

test: continuous coverage increase batch (exceptions, content provider, preference pages, action)#337

Merged
RoiSoleil merged 6 commits into
masterfrom
test/all-coverage-batches
Jul 2, 2026
Merged

test: continuous coverage increase batch (exceptions, content provider, preference pages, action)#337
RoiSoleil merged 6 commits into
masterfrom
test/all-coverage-batches

Conversation

@RoiSoleil

Copy link
Copy Markdown
Contributor

New tests

  • FolderCreationExceptionTest (2 tests): constructor and getFolder
  • FileContentProviderTest (4 tests): elements, default selection, children/parent
  • PreferencePagesTest (1 test): constant IDs
  • NoDependenciesToMockExceptionTest (1 test): class name in message
  • CreateTestMethodHierarchyActionTest (1 test): non-structured selection guard

Cumulative progress (this PR on top of #333-336)

  • 9 new unit tests (core + mock + plugin)
  • Total coverage raised from 0% base to measured via JaCoCo

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 merged commit 6499262 into master Jul 2, 2026
1 of 3 checks passed
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