Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
112 0 0 0 100% 3.973

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
net.sf.groovydice 16 0 0 0 100% 0.111
net.sf.groovydice.integration 2 0 0 0 100% 0.678
net.sf.groovydice.plugin 7 0 0 0 100% 1.145
net.sf.groovydice.plugin.builtin 87 0 0 0 100% 2.039

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

net.sf.groovydice

Class Tests Errors Failures Skipped Success Rate Time
DiceRollingCommandTest 15 0 0 0 100% 0.092
SimpleRandomNumberGeneratorTest 1 0 0 0 100% 0.019

net.sf.groovydice.integration

Class Tests Errors Failures Skipped Success Rate Time
GroovyDiceJavaIntegrationTest 2 0 0 0 100% 0.678

net.sf.groovydice.plugin

Class Tests Errors Failures Skipped Success Rate Time
PluginManagerTest 4 0 0 0 100% 1.101
GroovyDiceAPITest 3 0 0 0 100% 0.044

net.sf.groovydice.plugin.builtin

Class Tests Errors Failures Skipped Success Rate Time
DiceStatisticsPluginTest 13 0 0 0 100% 0.245
DiceArithmeticPluginTest 23 0 0 0 100% 0.372
DiceModifierPluginTest 18 0 0 0 100% 0.942
DiceExpressionPluginTest 16 0 0 0 100% 0.189
DiceFilterPluginTest 17 0 0 0 100% 0.291

Test Cases

DiceRollingCommandTest

getView 0.01
rollOneDie 0.008
rollThreeDice 0.003
rollMinusThreeDice 0.005
isEqualsToInvalidObject 0.003
isEqualsToDice 0.004
isEqualsToNumber 0.004
isCaseWithDiceRoll 0.009
isCase 0.004
compareDiceWithInvalidObject 0.006
compareDiceWithDice 0.004
compareDiceWithNumber 0.003
getHashCode 0.006
testToString 0.004
useClosureAsNumberGenerator 0.007

GroovyDiceJavaIntegrationTest

javaScriptingAPIIntegration 0.619
groovyShellIntegration 0.058

DiceStatisticsPluginTest

emptyDiceRollSum 0.002
diceRollSum 0.003
countDice 0.003
bestDieFromEmptyDiceRoll 0.003
bestDie 0.003
worstDieFromEmptyDiceRoll 0.002
worstDie 0.056
emptyDiceRollMean 0.002
mean 0.004
emptyDiceRollMedian 0.031
median 0.006
emptyDiceRollMode 0.003
mode 0.067

SimpleRandomNumberGeneratorTest

sortedNumbersInInterval 0.015

PluginManagerTest

register 0.164
unregisterAll 0.008
unregisterByClass 0.051
unregisterInstance 0.001

DiceArithmeticPluginTest

negativeDiceRoll 0.003
plusTwoDiceRolls 0.009
plusNumberToDiceRoll 0.008
plusDiceRollToNumber 0.011
subtractTwoDiceRolls 0.007
subtractNumberFromDiceRoll 0.015
subtractDiceRollFromNumber 0.036
multiplyTwoDiceRolls 0.008
multiplyNumberByDiceRoll 0.029
multiplyDiceRollByNumber 0.007
divideTwoDiceRolls 0.012
divideNumberByDiceRoll 0.037
divideDiceRollByNumber 0.043
diceRollRaisedToThePowerOfAnother 0.006
numberRaisedToThePowerOfDiceRoll 0.006
diceRollRaisedToThePowerOfNumber 0.005
moduloTwoDiceRolls 0.005
numberModuloDiceRoll 0.006
diceRollModuloNumber 0.04
isDiceRollTheSameAsNumber 0.007
isDiceRollTheSameAsList 0.027
isDiceRollTheSameAsAnother 0.007
isDiceRollTheSameAsInvalidObject 0.007

DiceModifierPluginTest

numberOnEveryDie 0.048
diceRollOnEveryDie 0.026
numberOnEachDieIf 0.015
diceRollOnEachDieIf 0.02
numberOnEachDieIfUsingDiceRoll 0.013
diceRollOnEachDieIfUsingDiceRoll 0.023
plusSimpleModifierToDiceRoll 0.046
plusConditionalModifierToDiceRoll 0.035
subtractSimpleModifierFromDiceRoll 0.036
subtractConditionalModifierFromDiceRoll 0.043
multiplyDiceRollBySimpleModifier 0.023
multiplyDiceRollByConditionalModifier 0.027
divideDiceRollBySimpleModifier 0.018
divideDiceRollByConditionalModifier 0.018
diceRollRaisedToThePowerOfSimpleModifier 0.024
diceRollRaisedToThePowerOfConditionalModifier 0.026
diceRollModuloSimpleModifier 0.02
diceRollModuloConditionalModifier 0.025

GroovyDiceAPITest

invokeMissingProperty 0.006
invokeAnotherMissingProperty 0.003
invokeMissingMethod 0.005

DiceExpressionPluginTest

rollDefaultDiceWithd 0.027
rollDefaultDiceWithD 0.027
rollDiceWithd 0.004
rollDiceWithD 0.004
rollInvalidDiceTypeWithd 0.005
rollInvalidDiceTypeWithD 0.003
rollDiceWithDiceRollAsDiceTypeWithd 0.009
rollDiceWithDiceRollAsDiceTypeWithD 0.031
rollDynamicDiceWithd 0.003
rollDynamicDiceWithD 0.015
rollPercentileDiceWithpd 0.003
rollPercentileDiceWithPd 0.01
rollPercentileDiceWithpD 0.014
rollPercentileDiceWithPD 0.003
rollPercentileDiceWithdPercent 0.004
rollPercentileDiceWithDPercent 0.003

DiceFilterPluginTest

isInvalidNumberBest 0.005
isNumberBest 0.003
isInvalidNumberWorst 0.004
isNumberWorst 0.003
methodTheWithInvalidArgument 0.004
theThreeBestOfEmptyDiceRoll 0.005
theThreeWorstOfEmptyDiceRoll 0.006
theSixBestOfThreeDice 0.04
theSixWorstOfThreeDice 0.014
theThreeBestOfSixDice 0.005
theBestOfSixDice 0.005
theThreeWorstOfSixDice 0.036
theWorstOfSixDice 0.005
onlyIf 0.036
onlyIfUsingDiceRoll 0.003
numberIsEven 0.035
numberIsOdd 0.008