Skip to content

test: add SWTBot Missing Tests and Missing Test Methods view tests#336

Merged
RoiSoleil merged 1 commit into
masterfrom
test/add-swtbot-missing-views
Jul 2, 2026
Merged

test: add SWTBot Missing Tests and Missing Test Methods view tests#336
RoiSoleil merged 1 commit into
masterfrom
test/add-swtbot-missing-views

Conversation

@RoiSoleil

Copy link
Copy Markdown
Contributor

SWTBot tests for MoreUnit views

New tests

  • MissingViewsSWTBotTest.should_open_missing_tests_per_project_view: opens Show View dialog, expands the MoreUnit category, selects Missing Tests per Project, and asserts the view opens.
  • MissingViewsSWTBotTest.should_open_missing_test_methods_view: opens Show View dialog, expands the MoreUnit category, selects Missing Test Methods, and asserts the view opens.

Resource files

  • MyClassWithMethods.txt: CUT with two methods (methodOne, methodTwo)
  • MyClassWithMethodsTest.txt: JUnit 5 test with only testMethodOne (partial coverage scenario)

Coverage impact

  • MissingTestsViewPart: 248 missed instructions → now exercised
  • MissingTestmethodViewPart: 186 missed instructions → now exercised

Verification

  • Build SUCCESS, both tests pass in ~37s.

- 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)
@RoiSoleil RoiSoleil merged commit 8a7eb93 into master Jul 2, 2026
3 checks passed
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.00000% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.60%. Comparing base (75b5f55) to head (3bb8125).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...est/org/moreunit/views/MissingViewsSWTBotTest.java 70.00% 9 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #336      +/-   ##
============================================
+ Coverage     77.45%   78.60%   +1.14%     
- Complexity     3746     3871     +125     
============================================
  Files           473      484      +11     
  Lines         16397    16723     +326     
  Branches       1324     1326       +2     
============================================
+ Hits          12701    13145     +444     
+ Misses         3140     3016     -124     
- Partials        556      562       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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