Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
72 0 0 1 98.611% 25.136

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
info.magnolia.module.groovy.task 5 0 0 0 100% 0.048
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.01
info.magnolia.module.groovy.console 3 0 0 0 100% 2.361
info.magnolia.module.groovy.support.classes 25 0 0 1 96% 0.47
info.magnolia.module.groovy.setup 15 0 0 0 100% 21.977
info.magnolia.module.groovy.validator 6 0 0 0 100% 0.056
info.magnolia.module.groovy.support.nodes 8 0 0 0 100% 0.029
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.012
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.173

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

info.magnolia.module.groovy.task

Class Tests Errors Failures Skipped Success Rate Time
ExecuteGroovyFileTaskTest 5 0 0 0 100% 0.048

info.magnolia.module.groovy.terminal

Class Tests Errors Failures Skipped Success Rate Time
GroovyTerminalTest 1 0 0 0 100% 0.01

info.magnolia.module.groovy.console

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyConsoleTest 3 0 0 0 100% 2.361

info.magnolia.module.groovy.support.classes

Class Tests Errors Failures Skipped Success Rate Time
GroovyClassFactoryTest 13 0 0 0 100% 0.304
GroovyModuleTest 1 0 0 1 0% 0
MgnlGroovyClassLoaderTest 11 0 0 0 100% 0.166

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 14 0 0 0 100% 21.867
InstallGroovyFileTest 1 0 0 0 100% 0.11

info.magnolia.module.groovy.validator

Class Tests Errors Failures Skipped Success Rate Time
GroovyValidatorTest 6 0 0 0 100% 0.056

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.029

info.magnolia.module.groovy.xml

Class Tests Errors Failures Skipped Success Rate Time
GroovyBuilderTest 8 0 0 0 100% 0.012

info.magnolia.module.groovy.rescue

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyRescueAppTest 1 0 0 0 100% 0.173

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 1.91
fastScriptReturnsWithoutStartingPolling 0.224
scriptWithNoReturnStatementDoesNotPrintOutNull 0.227

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.173

GroovyModuleVersionHandlerTest

updateFrom21ReordersGroovyInDevGroup 5.582
updateFrom201WithExistingLegacyApp 2.353
upgradeFrom222 1.337
updateFrom201WithNoExistingLegacyApp 2.296
cleanInstallBootstrapsSamples 1.375
updateFrom252RemovesWorkspaceFromCreateAppScriptEditorSection 0.844
updateFrom253ReplacesOldGroovyMailCommandSampleAndKeepsNonEmptyFolders 0.612
updateFrom22AddsDuplicateAction 1.206
upgradeFrom10 1.841
upgradeFrom23 1.045
updateFrom253ReplacesOldGroovyMailCommandSampleAndRemovesEmptyFolders 0.649
updateFrom260FixesCreateAppScript 0.475
updateFrom232ReplaceBasicTextCodeFieldDefinition 0.769
upgradeFrom21SetsAppPermissions 1.483

InstallGroovyFileTest

testInstallGroovyFiles 0.11

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.049
fallBackToClassPathIfScriptInRepoIsDisabled 0.031
delegateToDefaultClassFactoryToLoadJavaClasses 0.004
canLoadFromClassPath 0.016
reloadDoesNotRecompilesClassIfSourceUnchanged 0.011
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.012
throwRegularCNFEWhenClassExistsForNeitherCFs 0.002
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.011
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.079
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.02
canLoadClassFromRepo 0.018
recompileOnNewInstanceIfScriptInRepoWasModified 0.031
reloadRecompilesClassIfSourceChanged 0.02

GroovyModuleTest

testGroovyClassFactoryIsSetupAndModuleLifecycleCanBeAGroovyScript 0
fails with java.lang.AssertionError: Groovy Module class wasn't loaded ?

MgnlGroovyClassLoaderTest

throwCFEWhenScriptAndClassDeclarationsAreMixed 0.002
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.001
doNotThrowCFEWhenScriptAndClassDeclarationsAreMixedAndIsAScript 0.008
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.006
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.003
mgnlGroovyClassLoaderCallMethod 0.019
resolveScriptNameFromSource 0.104
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.009
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.004
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.008

MgnlGroovyJCRNodeTest

showProperty 0.014
iteratorWithContentNode 0.01
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001
getChildren 0.002
showNode 0.001
lookUpName 0
getChildrenOrNodesWithContentNode 0
iterator 0.001

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.023
inputFileNull 0
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.014
inputFileEmpty 0.01

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.01

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.032
validateGroovyClassWithInexistentPackage 0.003
validateGroovyClassWithPackage 0.005
validateGroovyClassDeclaringPackageButUnderRoot 0.003
validateGroovyClassNoPackage 0.006
validateGroovyScript 0.007

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.002
getCurrentNode 0.001
createPropertiesOfDifferentTypes 0.006
createNodeOverridesNodeType 0.002
createNodeCreatesSubnodes 0.001
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0

Failure Details

[Summary] [Package List] [Test Cases]


testGroovyClassFactoryIsSetupAndModuleLifecycleCanBeAGroovyScript
skipped: fails with java.lang.AssertionError: Groovy Module class wasn't loaded ?