Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.16
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.011
info.magnolia.module.groovy.console 3 0 0 0 100% 3.221
info.magnolia.module.groovy.support.classes 23 0 0 1 95.652% 2.059
info.magnolia.module.groovy.setup 11 0 0 0 100% 44.188
info.magnolia.module.groovy.validator 6 0 0 0 100% 0.322
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.23
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.055
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.12

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

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.console

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

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 10 0 0 0 100% 43.513
InstallGroovyFileTest 1 0 0 0 100% 0.675

info.magnolia.module.groovy.validator

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

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.109
MgnlGroovyNodeTest 6 0 0 0 100% 0.121

info.magnolia.module.groovy.xml

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

info.magnolia.module.groovy.rescue

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

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 2.742
fastScriptReturnsWithoutStartingPolling 0.223
scriptWithNoReturnStatementDoesNotPrintOutNull 0.256

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.12

GroovyModuleVersionHandlerTest

updateFrom21ReordersGroovyInDevGroup 10.583
updateFrom201WithExistingLegacyApp 5.701
upgradeFrom222 3.099
updateFrom201WithNoExistingLegacyApp 4.689
updateFrom252RemovesWorkspaceFromCreateAppScriptEditorSection 2.02
updateFrom22AddsDuplicateAction 3.606
upgradeFrom10 4.965
upgradeFrom23 2.346
updateFrom232ReplaceBasicTextCodeFieldDefinition 1.713
upgradeFrom21SetsAppPermissions 4.791

InstallGroovyFileTest

testInstallGroovyFiles 0.675

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.26
fallBackToClassPathIfScriptInRepoIsDisabled 0.12
delegateToDefaultClassFactoryToLoadJavaClasses 0.004
canLoadFromClassPath 0.068
reloadDoesNotRecompilesClassIfSourceUnchanged 0.059
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.092
throwRegularCNFEWhenClassExistsForNeitherCFs 0.003
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.018
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.317
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.083
canLoadClassFromRepo 0.056
recompileOnNewInstanceIfScriptInRepoWasModified 0.125
reloadRecompilesClassIfSourceChanged 0.097

GroovyModuleTest

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

MgnlGroovyClassLoaderTest

throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.003
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.011
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.007
mgnlGroovyClassLoaderCallMethod 0.127
resolveScriptNameFromSource 0.466
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.003
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.009
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.006
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.125

MgnlGroovyJCRNodeTest

showProperty 0.051
iteratorWithContentNode 0.039
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0
showNode 0.001
lookUpName 0
getChildrenOrNodesWithContentNode 0.017
iterator 0
fetChildren 0.001

MgnlGroovyNodeTest

iteratorWithContentNode 0.116
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.004
getChildren 0
lookUpName 0.001
iterator 0
getChildrenWithContentNode 0

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.115
inputFileNull 0.001
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.034
inputFileEmpty 0.009

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.011

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.235
validateGroovyClassWithInexistentPackage 0.004
validateGroovyClassWithPackage 0.006
validateGroovyClassDeclaringPackageButUnderRoot 0.003
validateGroovyClassNoPackage 0.006
validateGroovyScript 0.068

GroovyBuilderTest

createNodeWithAllAvailableArguments 0
getCurrentNode 0
createPropertiesOfDifferentTypes 0.045
createNodeOverridesNodeType 0.008
createNodeCreatesSubnodes 0.001
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0.001

Failure Details

[Summary] [Package List] [Test Cases]


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