error-prone-support
error-prone-support copied to clipboard
Update all tests to use text blocks
~Edit: PR #603 was spun off from this PR. That change should be merged and finalized first.~
Suggested commit message:
Update all tests to use text blocks (#198)
All `CompilationTestHelper` and `BugCheckerRefactoringTestHelper` test
code is now specified using a single text block. These changes were
automated thanks to the new text block support added to the
`ErrorProneTestHelperSourceFormat` check, now renamed to
`TestHelperSourceFormat`.
Rebased and resolved conflicts.
The current state of the PR contains a Surefire upgrade, as it relied on functionality only available in a milestone release. This upgrade is now part of #532, to be merged first.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
5 Code Smells
No Coverage information
0.0% Duplication
- Surviving mutants in this change: 26
- Killed mutants in this change: 56
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat |
24 | 50 |
:zombie:tech.picnic.errorprone.bugpatterns.util.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
I filed #603 for the Jabel build changes; once merged the scope of this PR will be reduced to just the CompilationTestHelper
/BugCheckerRefactoringTestHelper
text block formatting support.
Rebased, resolved conflicts, and made the changes more compatible with Jabel.
- Surviving mutants in this change: 40
- Killed mutants in this change: 218
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat |
30 | 50 |
:zombie:tech.picnic.errorprone.bugpatterns.util.SourceCode |
2 | 6 |
:zombie:tech.picnic.errorprone.bugpatterns.MethodReferenceUsage |
2 | 17 |
:zombie:tech.picnic.errorprone.bugpatterns.SpringMvcAnnotation |
1 | 9 |
:zombie:tech.picnic.errorprone.bugpatterns.util.AnnotationAttributeMatcher |
1 | 2 |
:zombie:tech.picnic.errorprone.bugpatterns.PrimitiveComparison |
1 | 14 |
:zombie:tech.picnic.errorprone.bugpatterns.CanonicalAnnotationSyntax |
1 | 4 |
:zombie:tech.picnic.errorprone.bugpatterns.RefasterAnyOfUsage |
1 | 8 |
:zombie:tech.picnic.errorprone.bugpatterns.LexicographicalAnnotationAttributeListing$1 |
1 | 1 |
:tada:tech.picnic.errorprone.bugpatterns.StaticImport |
0 | 4 |
:tada:tech.picnic.errorprone.documentation.BugPatternTestExtractor$BugPatternTestCollector |
0 | 8 |
:tada:tech.picnic.errorprone.refaster.test.RefasterRuleCollection |
0 | 4 |
:tada:tech.picnic.errorprone.bugpatterns.RedundantStringConversion |
0 | 9 |
:tada:tech.picnic.errorprone.bugpatterns.LexicographicalAnnotationAttributeListing |
0 | 4 |
:tada:tech.picnic.errorprone.bugpatterns.JUnitValueSource |
0 | 8 |
:tada:tech.picnic.errorprone.bugpatterns.NonStaticImport |
0 | 2 |
:tada:tech.picnic.errorprone.bugpatterns.DirectReturn |
0 | 9 |
:tada:tech.picnic.errorprone.bugpatterns.FormatStringConcatenation$ReplacementArgumentsConstructor |
0 | 2 |
:tada:tech.picnic.errorprone.refaster.matchers.ThrowsCheckedException |
0 | 6 |
:tada:tech.picnic.errorprone.refaster.runner.Refaster |
0 | 2 |
:tada:tech.picnic.errorprone.bugpatterns.AmbiguousJsonCreator |
0 | 2 |
:tada:tech.picnic.errorprone.bugpatterns.MockitoMockClassReference |
0 | 8 |
:tada:tech.picnic.errorprone.bugpatterns.util.MoreJUnitMatchers |
0 | 4 |
:tada:tech.picnic.errorprone.bugpatterns.IsInstanceLambdaUsage |
0 | 4 |
:tada:tech.picnic.errorprone.refaster.matchers.IsEmpty |
0 | 2 |
:tada:tech.picnic.errorprone.refaster.matchers.IsLikelyTrivialComputation |
0 | 29 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 32
- Killed mutants in this change: 56
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat |
30 | 50 |
:zombie:tech.picnic.errorprone.bugpatterns.util.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 32
- Killed mutants in this change: 56
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat |
30 | 50 |
:zombie:tech.picnic.errorprone.bugpatterns.util.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 32
- Killed mutants in this change: 56
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat |
30 | 50 |
:zombie:tech.picnic.errorprone.bugpatterns.util.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
Rebased and resolved conflicts and other issues. The PR now targets master
. Next up would be to get the code in a reviewable state, primarily by extending test coverage. One other key decision to make, is whether to keep support for the "don't use text blocks" mode. During development this has been very helpful, so perhaps we should keep it for now, but over time I expect that this functionality will become disused. (Though I suppose it'll simplify contributing checks upstream.)
NB: I added a commit with a proposal to rename the check. I've updated the suggested commit message accordingly.
Quality Gate passed
Issues
6 New issues
Measures
0 Security Hotspots
87.1% Coverage on New Code
0.0% Duplication on New Code
- Surviving mutants in this change: 33
- Killed mutants in this change: 74
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat |
31 | 68 |
:zombie:tech.picnic.errorprone.utils.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 33
- Killed mutants in this change: 74
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat |
31 | 68 |
:zombie:tech.picnic.errorprone.utils.SourceCode |
2 | 6 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 38
- Killed mutants in this change: 71
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat |
31 | 63 |
:zombie:tech.picnic.errorprone.utils.SourceCode |
7 | 6 |
:tada:tech.picnic.errorprone.documentation.BugPatternTestExtractor$BugPatternTestCollector |
0 | 2 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
Quality Gate passed
Issues
7 New issues
0 Accepted issues
Measures
0 Security Hotspots
79.2% Coverage on New Code
0.0% Duplication on New Code
- Surviving mutants in this change: 38
- Killed mutants in this change: 71
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat |
31 | 63 |
:zombie:tech.picnic.errorprone.utils.SourceCode |
7 | 6 |
:tada:tech.picnic.errorprone.documentation.BugPatternTestExtractor$BugPatternTestCollector |
0 | 2 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.
- Surviving mutants in this change: 38
- Killed mutants in this change: 71
class | surviving | killed |
---|---|---|
:zombie:tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat |
31 | 63 |
:zombie:tech.picnic.errorprone.utils.SourceCode |
7 | 6 |
:tada:tech.picnic.errorprone.documentation.BugPatternTestExtractor$BugPatternTestCollector |
0 | 2 |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.