Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
131 0 0 2 98.5% 521.4 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
e2e 72 0 0 2 97.2% 519.7 s
com.github.danielflower.mavenplugins.release 59 0 0 0 100% 1.796 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

e2e

- Class Tests Errors Failures Skipped Success Rate Time
ValidationTest 8 0 0 0 100% 33.62 s
JGitDiscoveryTest 1 0 0 1 0% 0.002 s
SingleModuleTest 6 0 0 0 100% 49.82 s
BomDependencyUsingParentModuleVersionTest 4 0 0 0 100% 53.17 s
TestRunningTest 2 0 0 0 100% 8.817 s
NextMojoTest 5 0 0 0 100% 35.52 s
PartialReleaseTest 3 0 0 0 100% 22.57 s
SkippingUnchangedModulesTest 7 0 0 0 100% 65.83 s
VersionOnlyTagTest 6 0 0 0 100% 48.88 s
GitRelatedTest 4 0 0 0 100% 8.507 s
NestedModulesTest 2 0 0 0 100% 43.48 s
HelpTest 2 0 0 0 100% 3.213 s
InheritedVersionsTest 2 0 0 0 100% 15.25 s
ParentAsSiblingTest 2 0 0 0 100% 17.81 s
MavenCompatibilityTest 1 0 0 1 0% 0.003 s
BomDependencyTest 4 0 0 0 100% 40.26 s
VersionsReportTest 1 0 0 0 100% 4.804 s
IndependentVersionsTest 3 0 0 0 100% 16.99 s
DifferentDelimiterTest 1 0 0 0 100% 16.52 s
LocalPluginTest 2 0 0 0 100% 6.894 s
ExecutionTest 6 0 0 0 100% 27.68 s

com.github.danielflower.mavenplugins.release

- Class Tests Errors Failures Skipped Success Rate Time
BaseMojoTest 7 0 0 0 100% 0.517 s
DiffDetectorTest 8 0 0 0 100% 0.414 s
ReleasableModuleTest 2 0 0 0 100% 0.006 s
ReleaseInvokerTest 13 0 0 0 100% 0.290 s
LocalGitRepoTest 4 0 0 0 100% 0.270 s
AnnotatedTagFinderTest 6 0 0 0 100% 0.167 s
ReactorTest 4 0 0 0 100% 0 s
AnnotatedTagTest 8 0 0 0 100% 0.058 s
VersionNamerTest 6 0 0 0 100% 0 s
SshAgentSessionFactoryTest 1 0 0 0 100% 0.074 s

Test Cases

[Summary] [Package List] [Test Cases]

ValidationTest

ifAReleaseTagAlreadyExistsInTheRemoteRepoThenItErrorsEarly 1.787 s
failsIfThereAreDependenciesOnSnapshotVersionsThatAreNotPartOfTheReactor 7.650 s
failsIfThereAreDependenciesOnSnapshotVersionsWithVersionPropertiesThatAreNotPartOfTheReactor 7.411 s
failsIfThereAreUntrackedFiles 1.714 s
passIfThereAreUntrackedFilesWhichAreAddedToUntrackedConfiguration 4.760 s
ifIOErrorOccursWhileUpdatingPomsThenThisIsReported 1.887 s
ifTheSameVersionIsReleasedTwiceItErrorsLoudly 6.663 s
failsIfThereAreUncommittedFiles 1.748 s

JGitDiscoveryTest

- 0 s
- got: "true", expected: null -

SingleModuleTest

canUpdateSnapshotVersionToReleaseVersionAndInstallToLocalRepo 6.738 s
thePomChangesAreRevertedAfterTheRelease 4.875 s
originTagsNotConsultedWithoutPull 9.289 s
theBuildNumberIsOptionalAndWillStartAt0AndThenIncrementTakingIntoAccountLocalAndRemoteTags 19.22 s
theLocalAndRemoteGitReposAreTaggedWithTheModuleNameAndVersion 4.900 s
onlyLocalGitRepoIsTaggedWithTheModuleNameAndVersionWithoutPush 4.804 s

BomDependencyUsingParentModuleVersionTest

willReleaseConsoleAppAndCoreUtilsWhenCoreUtilsIsChanged 13.18 s
willReleaseOnlyConsoleAppWhenConsoleAppIsChanged 12.99 s
willReleaseAllWhenBomIsChanged 13.52 s
willReleaseAllButBomWhenParentIsChanged 13.47 s

TestRunningTest

ifTestsAreSkippedYouCanReleaseWithoutRunningThem 4.360 s
doesNotReleaseIfThereAreTestFailuresButTagsAreStillWritten 4.456 s

NextMojoTest

changesInTheRootAreDetected 6.675 s
doesNotReReleaseAModuleThatHasNotChanged 7.047 s
ifADependencyHasNotChangedButSomethingItDependsOnHasChangedThenTheDependencyIsReReleased 7.192 s
ifThereHaveBeenNoChangesCanOptToReleaseNoModules 7.444 s
ifThereHaveBeenNoChangesThenReReleaseAllModules 7.156 s

PartialReleaseTest

buildsAndInstallsAndTagsAllModules 8.509 s
thePomChangesAreRevertedAfterTheRelease 4.932 s
whenNoChangesHaveBeenDetectedTheRequestedModuleIsBuiltAnyway 9.129 s

BaseMojoTest

configureJsch_PomIdentityFile 0.506 s
configureJsch_SshAgentDisabled 0 s
configureJsch_SettingsIdentityFile 0.003 s
configureJsch_CustomKnownHosts 0.001 s
configureJsch_CustomIdentityOverridesPom 0.001 s
configureJsch_ServerIdDoesNotExist 0.005 s
configureJsch_CustomPassphraseOverridesPom 0.001 s

SkippingUnchangedModulesTest

changesInTheRootAreDetected 9.306 s
ifThereHaveBeenNoChangesThenCanOptToFailTheBuild 7.169 s
doesNotReReleaseAModuleThatHasNotChanged 9.369 s
ifADependencyHasNotChangedButSomethingItDependsOnHasChangedThenTheDependencyIsReReleased 10.67 s
ifThereHaveBeenNoChangesThenCanOptNotToReleaseAnything 7.170 s
ifThereHaveBeenNoChangesThenReReleaseAllModules 10.38 s
ifThereHaveBeenNoChangesButArtifactsCannotBeResolvedThenReleaseIsForcedForTheseArtifacts 11.77 s

VersionOnlyTagTest

canUpdateSnapshotVersionToReleaseVersionAndInstallToLocalRepo 6.774 s
thePomChangesAreRevertedAfterTheRelease 4.702 s
originTagsNotConsultedWithoutPull 9.400 s
theBuildNumberIsOptionalAndWillStartAt0AndThenIncrementTakingIntoAccountLocalAndRemoteTags 18.35 s
theLocalAndRemoteGitReposAreTaggedWithTheModuleNameAndVersion 4.859 s
onlyLocalGitRepoIsTaggedWithTheModuleNameAndVersionWithoutPush 4.792 s

GitRelatedTest

ifTheScmIsSpecifiedButIsNotGitThenThisIsThrown 1.590 s
ifThereIsNoRemoteButTheScmDetailsArePresentThenThisIsUsed 3.369 s
ifTheReleaseIsRunFromANonGitRepoThenAnErrorIsClearlyDisplayed 1.712 s
ifThereIsNoScmInfoAndNoRemoteBranchThenAnErrorIsThrown 1.835 s

NestedModulesTest

buildsAndInstallsAndTagsAllModules 37.73 s
thePomChangesAreRevertedAfterTheRelease 5.749 s

HelpTest

runningTheHelpMojoTellsYouAboutThePlugin 1.575 s
canShowInformationAboutTheReleaseGoal 1.616 s

DiffDetectorTest

canDetectLatestTagOnBranch 0.047 s
canDetectLatestBuildNoMatterIfCreatedWrongWayRound 0.032 s
canDetectLocalChangesWithModuleFolders 0.070 s
canDetectThingsInTheRoot 0.036 s
canDetectIfFilesHaveBeenChangedForAModuleSinceSomeSpecificTag 0.064 s
canDetectChangesAfterTheLastTag 0.058 s
canDetectLatestBuild 0.032 s
canIgnoreChangesInModuleFolders 0.075 s

InheritedVersionsTest

buildsAndInstallsAndTagsAllModules 10.49 s
thePomChangesAreRevertedAfterTheRelease 4.760 s

ParentAsSiblingTest

buildsAndInstallsAndTagsAllModules 12.87 s
thePomChangesAreRevertedAfterTheRelease 4.931 s

ReleasableModuleTest

aReleaseableModuleCanBeCreatedFromAnUnreleasableOne 0.001 s
getsTheTagFromTheArtifactAndVersion 0.002 s

MavenCompatibilityTest

- 0 s
- got: "true", expected: null -

ReleaseInvokerTest

runMavenBuild_BaseTest 0.267 s
runMavenBuild_WithReleasableModule 0.001 s
runMavenBuild_WithUserSettings 0.001 s
runMavenBuild_UserImplicitlyWantsThisToBeReleased 0.003 s
runMavenBuild_WithGoals 0.003 s
runMavenBuild_WithActiveProfiles 0.001 s
runMavenBuild_WithGlobalSettings 0.002 s
runMavenBuild_UserImplicitlyWantsThisToBeReleased_WillNotBeReleased 0.002 s
runMavenBuild_ErrorExitCode 0.001 s
verifyDefaultConstructor 0.001 s
runMavenBuild_InvocationFailed 0.003 s
runMavenBuild_UserExplicitlyWantsThisToBeReleased 0.002 s
skipTests 0.002 s

BomDependencyTest

willReleaseConsoleAppAndCoreUtilsWhenCoreUtilsIsChanged 10.13 s
willReleaseOnlyConsoleAppWhenConsoleAppIsChanged 9.328 s
willReleaseAllWhenBomIsChanged 10.41 s
willReleaseAllButBomWhenParentIsChanged 10.39 s

VersionsReportTest

buildsAndInstallsAndTagsAllModules 4.800 s

IndependentVersionsTest

buildsAndInstallsAndTagsAllModules 10.49 s
thePomChangesAreRevertedAfterTheRelease 4.784 s
whenRunFromASubFolderItShowsAnError 1.715 s

LocalGitRepoTest

canHaveManyTags 0.172 s
canDetectRemoteTags 0.039 s
canDetectLocalTags 0.031 s
usesThePassedInScmUrlToFindRemote 0.028 s

AnnotatedTagFinderTest

respectDelimiterWhenExtractingBuildNumber 0 s
returnsMultipleTagsOnASingleCommit 0.061 s
returnsOnlyTagsOfCurrentBranch 0.044 s
canRecogniseTagsThatArePotentiallyOfTheSameVersion 0 s
versionNamerCaresNotForOrderOfTags 0 s
findsTheLatestCommitWhereThereHaveBeenNoBranches 0.061 s

DifferentDelimiterTest

canUpdateSnapshotVersionToReleaseVersionAndInstallToLocalRepo 10.10 s

ReactorTest

ifNotFoundThenAUnresolvedSnapshotDependencyExceptionIsThrown 0 s
returnsTheLatestTagIfThereAreChanges 0 s
findOrReturnNullReturnsNullIfNotFound 0 s
canFindModulesByGroupAndArtifactName 0 s

AnnotatedTagTest

tagIsFormattedAsExpectedWith0nlyVersionTemplate 0.003 s
ifATagIsSavedWithoutJsonThenTheVersionIsSetTo0Dot0 0.028 s
gettersReturnValuesPassedIn 0 s
tagIsFormattedAsExpectedWithEmptyTemplate 0 s
testWithInvalidTemplate 0 s
tagIsFormattedAsExpectedWithProjectPrefixTemplate 0 s
aTagCanBeCreatedFromAGitTag 0.026 s
testWithNullTemplate 0.001 s

LocalPluginTest

runWithLocalPluginSnapshotDependencyShouldSucceed 5.005 s
runWithSnapshotPluginDependencyShouldFail 1.889 s

ExecutionTest

profilesPassedToTheReleaseExecutionArePassedOnToTheDeployment 4.736 s
argumentsCanBePassed 4.836 s
mvn_optionsEnvVarIsPassedToExecution 4.721 s
envVarsAreInherited 4.714 s
userAndGlobalSettingsCanBeOverwrittenWithStandardMavenCommandLineParameters 4.296 s
profilesNotPassedToTheReleaseExecutionAreNotPassedOnToTheDeploymentButConfiguredProfilesAre 4.380 s

VersionNamerTest

ifTheBuildNumberIsNullButThereIsAPreviousBuildNumbersThenThatValueIsIncremented 0 s
ifTheBuildNumberIsNullAndThePreviousBuildNumbersIsEmptyListThenZeroIsUsed 0 s
throwsIfTheVersionWouldNotBeAValidGitTag 0 s
addsTheBuildWithADash 0 s
removesTheSnapshotAndSticksTheBuildNumberOnTheEnd 0 s
getterReturnsDefinedOrDefaultDelimiter 0 s

SshAgentSessionFactoryTest

createDefaultJSch_WithKnownHosts 0.074 s

Failure Details

[Summary] [Package List] [Test Cases]


- skipped: got: "true", expected: null
- skipped: got: "true", expected: null