Introduce TestNG to JUnit migration module [DRAFT]#507
Introduce TestNG to JUnit migration module [DRAFT]#507
Conversation
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
2 similar comments
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
1 similar comment
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
0dadcce to
405b917
Compare
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
1 similar comment
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
1 similar comment
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed. |
|
|
||
| # Use the Maven Wrapper executable if present. | ||
| MVN='mvn' | ||
| if [ -x ./mvnw ]; then |
There was a problem hiding this comment.
We don't need to do this. We have this internally but there is a thread where someone mentioned it is not best practice.
| echo "Number of JUnit tests run: $junit_results" | ||
| echo "Difference: $(expr ${testng_results} - ${junit_results})" | ||
|
|
||
| echo "Finished migration steps!" |
There was a problem hiding this comment.
Will add a few tweaks to the script and strings :).
| import org.junit.jupiter.api.Test; | ||
|
|
||
| // Should be de-duplicated in the future, for example by depending on `error-prone-contrib` | ||
| final class SourceCodeTest { |
There was a problem hiding this comment.
Hmm, we discussed this offline a few times. Let's drop it because it tests something we do not really use.
|
|
||
| final class TestNGMatchersTest { | ||
| @Test | ||
| void nGAnnotation() { |
There was a problem hiding this comment.
There is some overlap here, we can combine the tests :). Will push a proposal.
This reverts commit 37580fa.
…ovider migrations
561adcd to
fdf6813
Compare
| return Optional.of( | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.params.ParameterizedTest") | ||
| .addImport("org.junit.jupiter.params.provider.MethodSource") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
|
|
||
| return Optional.of( | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.params.ParameterizedTest") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| SuggestedFix.builder() | ||
| .addStaticImport("org.junit.jupiter.params.provider.Arguments.arguments") | ||
| .addImport(Stream.class.getCanonicalName()) | ||
| .addImport("org.junit.jupiter.params.provider.Arguments") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| dataProviderReturnTree -> | ||
| SuggestedFix.builder() | ||
| .addStaticImport("org.junit.jupiter.params.provider.Arguments.arguments") | ||
| .addImport(Stream.class.getCanonicalName()) |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| .map( | ||
| dataProviderReturnTree -> | ||
| SuggestedFix.builder() | ||
| .addStaticImport("org.junit.jupiter.params.provider.Arguments.arguments") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyStaticImport over direct invocation of SuggestedFix.Builder#addStaticImport
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.api.Order") | ||
| .addImport("org.junit.jupiter.api.TestMethodOrder") | ||
| .addImport("org.junit.jupiter.api.MethodOrderer") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| priority -> | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.api.Order") | ||
| .addImport("org.junit.jupiter.api.TestMethodOrder") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| .map( | ||
| priority -> | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.api.Order") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
| timeOut -> | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.api.Timeout") | ||
| .addStaticImport(TimeUnit.class.getCanonicalName() + ".MILLISECONDS") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyStaticImport over direct invocation of SuggestedFix.Builder#addStaticImport
| .map( | ||
| timeOut -> | ||
| SuggestedFix.builder() | ||
| .addImport("org.junit.jupiter.api.Timeout") |
There was a problem hiding this comment.
[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport
DRAFT