Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.174
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.02
info.magnolia.module.groovy.console 3 0 0 0 100% 5.558
info.magnolia.module.groovy.support.classes 25 0 0 1 96% 1.198
info.magnolia.module.groovy.setup 16 0 0 0 100% 49.283
info.magnolia.module.groovy.validator 6 0 0 0 100% 0.124
info.magnolia.module.groovy.support.nodes 8 0 0 0 100% 0.035
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.008
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.177

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

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.console

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

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 15 0 0 0 100% 48.995
InstallGroovyFileTest 1 0 0 0 100% 0.288

info.magnolia.module.groovy.validator

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

info.magnolia.module.groovy.support.nodes

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

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

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

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 5.068
fastScriptReturnsWithoutStartingPolling 0.239
scriptWithNoReturnStatementDoesNotPrintOutNull 0.251

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.177

GroovyModuleVersionHandlerTest

updateFrom261 5.842
updateFrom21ReordersGroovyInDevGroup 5.586
updateFrom201WithExistingLegacyApp 5.045
upgradeFrom222 3.023
updateFrom201WithNoExistingLegacyApp 5.384
cleanInstallBootstrapsSamples 6.918
updateFrom252RemovesWorkspaceFromCreateAppScriptEditorSection 2.136
updateFrom253ReplacesOldGroovyMailCommandSampleAndKeepsNonEmptyFolders 2.225
updateFrom22AddsDuplicateAction 2.781
upgradeFrom10 3.504
upgradeFrom23 1.377
updateFrom253ReplacesOldGroovyMailCommandSampleAndRemovesEmptyFolders 0.948
updateFrom260FixesCreateAppScript 0.924
updateFrom232ReplaceBasicTextCodeFieldDefinition 0.785
upgradeFrom21SetsAppPermissions 2.517

InstallGroovyFileTest

testInstallGroovyFiles 0.288

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0.082
fallBackToClassPathIfScriptInRepoIsDisabled 0.043
delegateToDefaultClassFactoryToLoadJavaClasses 0.01
canLoadFromClassPath 0.019
reloadDoesNotRecompilesClassIfSourceUnchanged 0.013
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.015
throwRegularCNFEWhenClassExistsForNeitherCFs 0.002
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.033
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.099
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.165
canLoadClassFromRepo 0.03
recompileOnNewInstanceIfScriptInRepoWasModified 0.048
reloadRecompilesClassIfSourceChanged 0.119

GroovyModuleTest

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

MgnlGroovyClassLoaderTest

throwCFEWhenScriptAndClassDeclarationsAreMixed 0.031
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.003
doNotThrowCFEWhenScriptAndClassDeclarationsAreMixedAndIsAScript 0.036
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.016
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.024
mgnlGroovyClassLoaderCallMethod 0.025
resolveScriptNameFromSource 0.368
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.004
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.002
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.009

MgnlGroovyJCRNodeTest

showProperty 0.002
iteratorWithContentNode 0.016
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.002
getChildren 0.013
showNode 0.001
lookUpName 0
getChildrenOrNodesWithContentNode 0.001
iterator 0

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.021
inputFileNull 0.001
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.012
inputFileEmpty 0.139

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0.02

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.09
validateGroovyClassWithInexistentPackage 0.003
validateGroovyClassWithPackage 0.007
validateGroovyClassDeclaringPackageButUnderRoot 0.007
validateGroovyClassNoPackage 0.005
validateGroovyScript 0.012

GroovyBuilderTest

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

Failure Details

[Summary] [Package List] [Test Cases]


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