test: add SWTBot Missing Tests and Missing Test Methods view tests#336
Merged
Conversation
- 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)
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SWTBot tests for MoreUnit views
New tests
MissingViewsSWTBotTest.should_open_missing_tests_per_project_view: opens Show View dialog, expands theMoreUnitcategory, selectsMissing Tests per Project, and asserts the view opens.MissingViewsSWTBotTest.should_open_missing_test_methods_view: opens Show View dialog, expands theMoreUnitcategory, selectsMissing Test Methods, and asserts the view opens.Resource files
MyClassWithMethods.txt: CUT with two methods (methodOne,methodTwo)MyClassWithMethodsTest.txt: JUnit 5 test with onlytestMethodOne(partial coverage scenario)Coverage impact
MissingTestsViewPart: 248 missed instructions → now exercisedMissingTestmethodViewPart: 186 missed instructions → now exercisedVerification