Skip to content

Introduce TestNG to JUnit migration module [DRAFT]#507

Draft
oxkitsune wants to merge 137 commits intomasterfrom
gdejong/testng-migrator
Draft

Introduce TestNG to JUnit migration module [DRAFT]#507
oxkitsune wants to merge 137 commits intomasterfrom
gdejong/testng-migrator

Conversation

@oxkitsune
Copy link
Copy Markdown
Contributor

DRAFT

@rickie rickie changed the title TestNG to JUnit migrator DRAFT TestNG to JUnit migrator [DRAFT] Feb 23, 2023
@rickie rickie changed the title TestNG to JUnit migrator [DRAFT] Introduce TestNG to JUnit module [DRAFT] Feb 23, 2023
@rickie rickie changed the title Introduce TestNG to JUnit module [DRAFT] Introduce TestNG to JUnit migration module [DRAFT] Feb 23, 2023
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 34
  • Killed mutants in this change: 204
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 11 36
🧟tech.picnic.errorprone.bugpatterns.AnnotationAttributeReplacement 5 58
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 17
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Comment thread testng-junit-migrator/pom.xml Outdated
Comment thread testng-junit-migrator/pom.xml Outdated
@oxkitsune oxkitsune self-assigned this Feb 23, 2023
Copy link
Copy Markdown
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOme comments :D

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 29
  • Killed mutants in this change: 146
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 11 36
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 17
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

2 similar comments
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 29
  • Killed mutants in this change: 146
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 11 36
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 17
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 29
  • Killed mutants in this change: 146
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 11 36
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 17
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 29
  • Killed mutants in this change: 144
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 11 36
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 28
  • Killed mutants in this change: 141
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

1 similar comment
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 28
  • Killed mutants in this change: 141
class surviving killed
🧟tech.picnic.errorprone.testngjunit.migrators.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.migrators.argument.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.migrators.argument.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.migrators.argument.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 28
  • Killed mutants in this change: 141
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie force-pushed the gdejong/testng-migrator branch from 0dadcce to 405b917 Compare February 27, 2023 16:22
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 28
  • Killed mutants in this change: 141
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

1 similar comment
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 28
  • Killed mutants in this change: 141
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 4 13
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 16
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2023

  • Surviving mutants in this change: 30
  • Killed mutants in this change: 158
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 5 15
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 32
  • Killed mutants in this change: 164
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 5 15
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 2 6
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 33
  • Killed mutants in this change: 165
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 5 19
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 2 6
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 31
  • Killed mutants in this change: 167
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 34
  • Killed mutants in this change: 179
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 3 12
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 35
  • Killed mutants in this change: 187
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 4 20
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 32
  • Killed mutants in this change: 189
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 1 22
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 40
  • Killed mutants in this change: 190
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.SourceCode 8 1
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 1 22
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 37
  • Killed mutants in this change: 193
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.SourceCode 5 4
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 1 22
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 5
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 38
  • Killed mutants in this change: 201
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.SourceCode 5 4
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 2 11
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 1 22
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

1 similar comment
@github-actions
Copy link
Copy Markdown

  • Surviving mutants in this change: 38
  • Killed mutants in this change: 201
class surviving killed
🧟tech.picnic.errorprone.testngjunit.DataProviderMigrator 10 33
🧟tech.picnic.errorprone.testngjunit.TestNGScanner 6 16
🧟tech.picnic.errorprone.testngjunit.SourceCode 5 4
🧟tech.picnic.errorprone.testngjunit.ExpectedExceptionsArgumentMigrator 4 21
🧟tech.picnic.errorprone.testngjunit.TestNGJUnitMigration$1 4 19
🧟tech.picnic.errorprone.testngjunit.DataProviderArgumentMigrator 3 10
🧟tech.picnic.errorprone.testngjunit.SetupTeardownMethodMigrator 2 11
🧟tech.picnic.errorprone.testngjunit.DescriptionArgumentMigrator 1 5
🧟tech.picnic.errorprone.testngjunit.GroupsArgumentMigrator 1 22
🧟tech.picnic.errorprone.testngjunit.PriorityArgumentMigrator 1 8
🧟tech.picnic.errorprone.testngjunit.EnabledArgumentMigrator 1 6
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$SetupTeardownType 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$AnnotationMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$Builder 0 7
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata 0 11
🎉tech.picnic.errorprone.testngjunit.TestNGMetadata$DataProviderMetadata 0 1
🎉tech.picnic.errorprone.testngjunit.TestNGJUnitMigration 0 15
🎉tech.picnic.errorprone.testngjunit.SupportedArgumentKind 0 4

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link
Copy Markdown
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flushing some comments :).


# Use the Maven Wrapper executable if present.
MVN='mvn'
if [ -x ./mvnw ]; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some overlap here, we can combine the tests :). Will push a proposal.

@rickie rickie force-pushed the gdejong/testng-migrator branch from 561adcd to fdf6813 Compare August 19, 2025 05:51
return Optional.of(
SuggestedFix.builder()
.addImport("org.junit.jupiter.params.ParameterizedTest")
.addImport("org.junit.jupiter.params.provider.MethodSource")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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())
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[javac] reported by reviewdog 🐶
[UnqualifiedSuggestedFixImport] Prefer SuggestedFixes#qualifyType over direct invocation of SuggestedFix.Builder#addImport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants