Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
70 0 0 2 97.143% 19.259

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.038
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.049
info.magnolia.module.groovy.console 3 0 0 0 100% 1.797
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.171
info.magnolia.module.groovy.setup 9 0 0 1 88.889% 16.708
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.004
info.magnolia.module.groovy.support.classes 23 0 0 1 95.652% 0.405
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.02
info.magnolia.module.groovy.validator 6 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.038

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

info.magnolia.module.groovy.console

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

info.magnolia.module.groovy.rescue

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

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 8 0 0 0 100% 16.708
InstallGroovyFileTest 1 0 0 1 0% 0

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.xml

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

info.magnolia.module.groovy.validator

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

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 1.345
fastScriptReturnsWithoutStartingPolling 0.225
scriptWithNoReturnStatementDoesNotPrintOutNull 0.227

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.171

GroovyModuleVersionHandlerTest

updateFrom21ReordersGroovyInDevGroup 6.903
updateFrom201WithExistingLegacyApp 2.452
upgradeFrom222 1.455
updateFrom201WithNoExistingLegacyApp 1.477
updateFrom22AddsDuplicateAction 1.076
upgradeFrom10 1.5
upgradeFrom23 0.724
upgradeFrom21SetsAppPermissions 1.121

InstallGroovyFileTest

testInstallGroovyFiles 0
skipped

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.046
fallBackToClassPathIfScriptInRepoIsDisabled 0.025
delegateToDefaultClassFactoryToLoadJavaClasses 0.004
canLoadFromClassPath 0.016
reloadDoesNotRecompilesClassIfSourceUnchanged 0.009
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.01
throwRegularCNFEWhenClassExistsForNeitherCFs 0.002
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.01
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.055
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.016
canLoadClassFromRepo 0.014
recompileOnNewInstanceIfScriptInRepoWasModified 0.03
reloadRecompilesClassIfSourceChanged 0.019

GroovyModuleTest

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

MgnlGroovyClassLoaderTest

throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.002
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.008
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.005
mgnlGroovyClassLoaderCallMethod 0.016
resolveScriptNameFromSource 0.1
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.003
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.004
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.002
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.009

MgnlGroovyJCRNodeTest

showProperty 0.01
iteratorWithContentNode 0.001
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001
showNode 0.001
lookUpName 0
getChildrenOrNodesWithContentNode 0.007
iterator 0
fetChildren 0

MgnlGroovyNodeTest

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

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.019
inputFileNull 0.001
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.008
inputFileEmpty 0.009

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.004

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.04
validateGroovyClassWithInexistentPackage 0.004
validateGroovyClassWithPackage 0.005
validateGroovyClassDeclaringPackageButUnderRoot 0.003
validateGroovyClassNoPackage 0.006
validateGroovyScript 0.009

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.005
getCurrentNode 0
createPropertiesOfDifferentTypes 0.012
createNodeOverridesNodeType 0.003
createNodeCreatesSubnodes 0
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0

Failure Details

[Summary] [Package List] [Test Cases]


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