Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
71 0 0 1 98.592% 11.205

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.029
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.005
info.magnolia.module.groovy.console 3 0 0 0 100% 1.44
info.magnolia.module.groovy.support.classes 23 0 0 1 95.652% 0.285
info.magnolia.module.groovy.setup 10 0 0 0 100% 9.278
info.magnolia.module.groovy.validator 6 0 0 0 100% 0.043
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.046
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.012
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.067

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.029

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.console

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

info.magnolia.module.groovy.support.classes

Class Tests Errors Failures Skipped Success Rate Time
GroovyClassFactoryTest 13 0 0 0 100% 0.17
GroovyModuleTest 1 0 0 1 0% 0
MgnlGroovyClassLoaderTest 9 0 0 0 100% 0.115

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 9 0 0 0 100% 9.195
InstallGroovyFileTest 1 0 0 0 100% 0.083

info.magnolia.module.groovy.validator

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

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.02
MgnlGroovyNodeTest 6 0 0 0 100% 0.026

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.067

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 1.001
fastScriptReturnsWithoutStartingPolling 0.215
scriptWithNoReturnStatementDoesNotPrintOutNull 0.224

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.067

GroovyModuleVersionHandlerTest

updateFrom21ReordersGroovyInDevGroup 2.869
updateFrom201WithExistingLegacyApp 1.314
upgradeFrom222 0.75
updateFrom201WithNoExistingLegacyApp 0.98
updateFrom22AddsDuplicateAction 0.664
upgradeFrom10 1.039
upgradeFrom23 0.471
updateFrom232ReplaceBasicTextCodeFieldDefinition 0.36
upgradeFrom21SetsAppPermissions 0.748

InstallGroovyFileTest

testInstallGroovyFiles 0.083

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.028
fallBackToClassPathIfScriptInRepoIsDisabled 0.021
delegateToDefaultClassFactoryToLoadJavaClasses 0.002
canLoadFromClassPath 0.011
reloadDoesNotRecompilesClassIfSourceUnchanged 0.006
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.006
throwRegularCNFEWhenClassExistsForNeitherCFs 0.001
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.006
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.043
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.011
canLoadClassFromRepo 0.01
recompileOnNewInstanceIfScriptInRepoWasModified 0.015
reloadRecompilesClassIfSourceChanged 0.01

GroovyModuleTest

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

MgnlGroovyClassLoaderTest

throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.002
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.006
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.003
mgnlGroovyClassLoaderCallMethod 0.011
resolveScriptNameFromSource 0.081
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.002
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.002
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.006

MgnlGroovyJCRNodeTest

showProperty 0.008
iteratorWithContentNode 0.004
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001
showNode 0
lookUpName 0
getChildrenOrNodesWithContentNode 0.006
iterator 0
fetChildren 0.001

MgnlGroovyNodeTest

iteratorWithContentNode 0.022
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.003
getChildren 0
lookUpName 0
iterator 0.001
getChildrenWithContentNode 0

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.015
inputFileNull 0
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.007
inputFileEmpty 0.006

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.005

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.025
validateGroovyClassWithInexistentPackage 0.004
validateGroovyClassWithPackage 0.004
validateGroovyClassDeclaringPackageButUnderRoot 0.002
validateGroovyClassNoPackage 0.003
validateGroovyScript 0.005

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.005
getCurrentNode 0
createPropertiesOfDifferentTypes 0.005
createNodeOverridesNodeType 0.001
createNodeCreatesSubnodes 0
createNodeWithBlankArg 0.001
createNode 0
createNodeIgnoresFurtherValueArgument 0

Failure Details

[Summary] [Package List] [Test Cases]


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