Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
73 0 0 1 98.63% 15.161

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.024
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.005
info.magnolia.module.groovy.console 3 0 0 0 100% 0.653
info.magnolia.module.groovy.support.classes 25 0 0 1 96% 0.158
info.magnolia.module.groovy.setup 16 0 0 0 100% 13.128
info.magnolia.module.groovy.validator 6 0 0 0 100% 1.047
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.008
info.magnolia.module.groovy.support.nodes 8 0 0 0 100% 0.006
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.132

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

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% 0.653

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallGroovyFileTest 1 0 0 0 100% 0.107
GroovyModuleVersionHandlerTest 15 0 0 0 100% 13.021

info.magnolia.module.groovy.validator

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

info.magnolia.module.groovy.xml

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

info.magnolia.module.groovy.support.nodes

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

info.magnolia.module.groovy.rescue

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

Test Cases

[Summary] [Package List] [Test Cases]

GroovyBuilderTest

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

InstallGroovyFileTest

testInstallGroovyFiles 0.107

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.941
validateGroovyClassWithInexistentPackage 0.003
validateGroovyClassWithPackage 0.083
validateGroovyClassDeclaringPackageButUnderRoot 0.002
validateGroovyClassNoPackage 0.005
validateGroovyScript 0.013

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 0.223
fastScriptReturnsWithoutStartingPolling 0.214
scriptWithNoReturnStatementDoesNotPrintOutNull 0.216

MgnlGroovyClassLoaderTest

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

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.022
fallBackToClassPathIfScriptInRepoIsDisabled 0.009
delegateToDefaultClassFactoryToLoadJavaClasses 0.002
canLoadFromClassPath 0.009
reloadDoesNotRecompilesClassIfSourceUnchanged 0.005
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.006
throwRegularCNFEWhenClassExistsForNeitherCFs 0.001
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.005
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.028
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.011
canLoadClassFromRepo 0.008
recompileOnNewInstanceIfScriptInRepoWasModified 0.013
reloadRecompilesClassIfSourceChanged 0.01

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.01
inputFileNull 0.001
inputFileNotExisting 0
inputFileGeneratingGroovyException 0.009
inputFileEmpty 0.004

MgnlGroovyJCRNodeTest

showProperty 0
iteratorWithContentNode 0.004
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0
getChildren 0.001
showNode 0
lookUpName 0
getChildrenOrNodesWithContentNode 0.001
iterator 0

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.132

GroovyModuleTest

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

GroovyModuleVersionHandlerTest

updateFrom261 1.784
updateFrom21ReordersGroovyInDevGroup 1.427
updateFrom201WithExistingLegacyApp 1.09
upgradeFrom222 0.759
updateFrom201WithNoExistingLegacyApp 0.899
cleanInstallBootstrapsSamples 1.952
updateFrom252RemovesWorkspaceFromCreateAppScriptEditorSection 0.526
updateFrom253ReplacesOldGroovyMailCommandSampleAndKeepsNonEmptyFolders 0.494
updateFrom22AddsDuplicateAction 0.68
upgradeFrom10 0.912
upgradeFrom23 0.542
updateFrom253ReplacesOldGroovyMailCommandSampleAndRemovesEmptyFolders 0.405
updateFrom260FixesCreateAppScript 0.327
updateFrom232ReplaceBasicTextCodeFieldDefinition 0.427
upgradeFrom21SetsAppPermissions 0.797

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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