Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
85 0 0 4 95.3% 30.06 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
org.apache.ibatis.migration.runtime_migration.scripts_java 3 0 0 0 100% 0.038 s
org.apache.ibatis.migration.utils 2 0 0 0 100% 0.005 s
it.version_without_changelog 1 0 0 0 100% 0.565 s
org.apache.ibatis.migration.hook 3 0 0 0 100% 6.912 s
org.apache.ibatis.migration.options 4 0 0 0 100% 0.061 s
org.apache.ibatis.migration 48 0 0 3 93.8% 21.49 s
org.apache.ibatis.migration.script_hook 4 0 0 0 100% 0.174 s
org.apache.ibatis.migration.runtime_migration 12 0 0 0 100% 0.141 s
org.apache.ibatis.migration.commands 7 0 0 1 85.7% 0.049 s
org.apache.ibatis.migration.system_property 1 0 0 0 100% 0.625 s

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

org.apache.ibatis.migration.runtime_migration.scripts_java

- Class Tests Errors Failures Skipped Success Rate Time
JavaMigrationLoaderTest 3 0 0 0 100% 0.038 s

org.apache.ibatis.migration.utils

- Class Tests Errors Failures Skipped Success Rate Time
UtilTest 2 0 0 0 100% 0.005 s

it.version_without_changelog

- Class Tests Errors Failures Skipped Success Rate Time
VersionWithoutChangeLogTest 1 0 0 0 100% 0.565 s

org.apache.ibatis.migration.hook

- Class Tests Errors Failures Skipped Success Rate Time
MigrationHookTest 1 0 0 0 100% 0.711 s
NewHookTest 2 0 0 0 100% 6.201 s

org.apache.ibatis.migration.options

- Class Tests Errors Failures Skipped Success Rate Time
OptionsParserTest 4 0 0 0 100% 0.061 s

org.apache.ibatis.migration

- Class Tests Errors Failures Skipped Success Rate Time
MigrationReaderTest 20 0 0 3 85.0% 0.016 s
MigratorTest 28 0 0 0 100% 21.48 s

org.apache.ibatis.migration.script_hook

- Class Tests Errors Failures Skipped Success Rate Time
ScriptHookTest 4 0 0 0 100% 0.174 s

org.apache.ibatis.migration.runtime_migration

- Class Tests Errors Failures Skipped Success Rate Time
RuntimeMigrationTest 12 0 0 0 100% 0.141 s

org.apache.ibatis.migration.commands

- Class Tests Errors Failures Skipped Success Rate Time
BaseCommandTest 7 0 0 1 85.7% 0.049 s

org.apache.ibatis.migration.system_property

- Class Tests Errors Failures Skipped Success Rate Time
SystemPropertyTest 1 0 0 0 100% 0.625 s

Test Cases

[Summary] [Package List] [Test Cases]

VersionWithoutChangeLogTest

shouldUpToVersionEvenWithoutChangelog 0.545 s

BaseCommandTest

testCopyResource 0.023 s
testExternalFileWithVariables 0.004 s
testCopyResourceWithVariables 0.004 s
testExternalFile 0.003 s
testNonexistentResource 0.004 s
testNonexistentFileLinuxMac 0 s
- Disabled on operating system: Windows 11 -
testNonexistentFileWindows 0.003 s

MigrationHookTest

testHooks 0.707 s

NewHookTest

shouldNotCreateFileWhenBeforeHookThrowsException 3.094 s
shouldRunNewHooks 3.106 s

MigrationReaderTest

shouldReturnDoPart 0.002 s
shouldReplaceVariables_Do 0.001 s
shouldRequireDoubleSlashInUndoComment 0.001 s
shouldRetainLineBreakAfterDelimiter 0.001 s
shouldRespectSpecifiedOffsetAndLength 0.001 s
shouldReturnAllAsDoIfUndoCommentNotFound_NoEndBreak 0.001 s
shouldReplaceVariables_Undo 0 s
shouldUndoCommentAllowAnyCharBeforeAtMark 0 s
- This won't work since 3.2.2 for performance reason. -
shouldRemoveFirstDoubleSlashInEveryComment_Do 0 s
- This won't work since 3.2.2 mainly for performance reason. -
shouldSecondUndoMarkerHaveNoEffect 0.001 s
shouldNormalizeLineSeparator_Do 0 s
shouldReturnAllAsDoIfUndoCommentNotFound 0.001 s
testReadWithBuffer 0 s
shouldReturnEmptyUndoIfUndoCommentNotFound_NoEndBreak 0.001 s
shouldReturnUndoPart 0 s
shouldReturnUndoPart_NoEndBreak 0 s
shouldNormalizeLineSeparator_Undo 0.001 s
shouldReturnEmptyUndoIfUndoCommentNotFound 0 s
shouldRemoveFirstDoubleSlashInEveryComment_Undo 0 s
- This won't work since 3.2.2 mainly for performance reason. -
shouldUndoCommentBeLenient 0.001 s

MigratorTest

testBootstrapCommand 0.015 s
testStatusContainsNoPendingEntriesUsingStatusShorthand 0.004 s
testUpCommandWithSpecifiedSteps 0.010 s
assertAuthorEmailContainsPlaceholder 0.001 s
testDownCommandGiven2Steps 0.006 s
testRedoCommand 0.015 s
testDoPendingScriptCommand 0.006 s
testVersionCommand 0.003 s
testSkippedScript 0.004 s
testMissingScript 0.004 s
testDownCommand 0.004 s
testPendingCommand 0.003 s
testHelpCommand 0 s
testDoScriptCommand 0.003 s
testUndoScriptCommand 0.003 s
shouldSuppressOutputIfQuietOptionEnabled 2.049 s
testInfoCommand 0.002 s
shouldInitTempDirectory 3.049 s
useCustomTemplateWithBadPath 3.062 s
shouldShowErrorOnMissingChangelog 0.004 s
testInfoWithNonExistentBasePath 0.001 s
shouldColorizeFailureOutputIfColorOptionEnabled 0.002 s
shouldColorizeSuccessOutputIfColorOptionEnabled 2.036 s
shouldScriptCommandFailIfSameVersion 0.001 s
shouldRespectIdPattern 3.072 s
useCustomTemplateWithNoValue 3.026 s
testInitWithNonExistentBasePath 2.036 s
useCustomTemplate 3.050 s

OptionsParserTest

testOptions 0 s
testFileOptions 0.056 s
testEnvAndTemplate 0.003 s
onlyPopulatesCommandOnce 0 s

RuntimeMigrationTest

shouldIgnoreBootstrapIfChangelogExists 0.016 s
testDown 0.014 s
testPending 0.011 s
testUp 0.010 s
testVersionUp 0.011 s
testDownWithStep 0.012 s
testVersionDown 0.010 s
testUpWithHook 0.011 s
testUpWithStep 0.008 s
testUpFromDifferentBranches 0.012 s
testInitialStatus 0.010 s
testBootstrapOperation 0.010 s

JavaMigrationLoaderTest

testGetScriptReader 0.029 s
testGetMigrations 0.003 s
testGetBootstrapReader 0.002 s

ScriptHookTest

testPendingUndoScript 0.047 s
testPendingDoScript 0.041 s
testDoScript 0.037 s
testUndoScript 0.044 s

SystemPropertyTest

testSystemProperties 0.078 s

UtilTest

testFile 0.001 s
testIsOption 0.001 s

Failure Details

[Summary] [Package List] [Test Cases]


testNonexistentFileLinuxMac
- skipped: Disabled on operating system: Windows 11
shouldUndoCommentAllowAnyCharBeforeAtMark
- skipped: This won't work since 3.2.2 for performance reason.
shouldRemoveFirstDoubleSlashInEveryComment_Do
- skipped: This won't work since 3.2.2 mainly for performance reason.
shouldRemoveFirstDoubleSlashInEveryComment_Undo
- skipped: This won't work since 3.2.2 mainly for performance reason.