Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
131 0 0 1 99.2% 2.011 s

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
org.carrot2.util 27 0 0 0 100% 0.136 s
org.carrot2.labs.smartsprites.css 15 0 0 0 100% 0.312 s
org.carrot2.labs.smartsprites 89 0 0 1 98.9% 1.563 s

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

org.carrot2.util

- Class Tests Errors Failures Skipped Success Rate Time
BufferedImageUtilsTest 10 0 0 0 100% 0.050 s
ColorQuantizerTest 9 0 0 0 100% 0.082 s
FileUtilsTest 8 0 0 0 100% 0.004 s

org.carrot2.labs.smartsprites.css

- Class Tests Errors Failures Skipped Success Rate Time
CssSyntaxUtilsTest 15 0 0 0 100% 0.312 s

org.carrot2.labs.smartsprites

- Class Tests Errors Failures Skipped Success Rate Time
SmartSpritesParametersTest 10 0 0 0 100% 0.089 s
SpriteBuilderTest 33 0 0 1 97.0% 1.440 s
SpriteDirectiveOccurrenceCollectorTest 7 0 0 0 100% 0.006 s
SpriteImageDirectiveTest 23 0 0 0 100% 0.015 s
SpriteReferenceDirectiveTest 16 0 0 0 100% 0.013 s

Test Cases

[Summary] [Package List] [Test Cases]

CssSyntaxUtilsTest

testUnpackUrlNoQuotes 0.052 s
testUnpackUrlDoubleQuotes 0.001 s
testMoreRules 0.167 s
testImportantRules 0.001 s
testEmpty 0.001 s
testUnpackUrlSingleQuotes 0 s
testWhiteSpace 0 s
testColonsInPropertyValue 0.003 s
testShortCssColor 0.015 s
testSingleRule 0.001 s
testMalformedPrefix 0 s
testUpperCaseRule 0 s
testInvalidCssColor 0.001 s
testLongCssColor 0.034 s
testUnbalancedQuotes 0.001 s

SmartSpritesParametersTest

testValidateRootDirDoesNotExist 0.065 s
testValidateValidAllDirs 0.002 s
testValidateNoRootDirNoCssFiles 0.002 s
testValidateValidOnlyRootDir 0.002 s
testValidateRootDirAndCssFilesWithoutOutputDir 0.002 s
testValidateOutputDirNoRootDir 0.002 s
testValidateDocumentRootDirIsNotADirectory 0.002 s
testValidateDocumentRootDirDoesNotExist 0.003 s
testValidateNoOutputDirAndEmptyCssFileSuffix 0.002 s
testValidateOutputDirIsNotADirectory 0.002 s

SpriteBuilderTest

testIndexedForcedIndexedColor 0.240 s
testIndividualCssFilesWithOutputDir 0.064 s
testNoSpriteDeclarations 0.003 s
testIndexedColor 0.051 s
testIndexedForcedDirectColor 0.107 s
testCssSubfolders 0.038 s
testNonDefaultOutputDir 0.038 s
testSpriteCentering 0.049 s
testSimpleHorizontalSpriteImportant 0.043 s
testRepeatedImageReferences 0.046 s
testMatteColor 0.059 s
testMatteColorForcedIndex 0.075 s
testUnsupportedIndividualImageFormat 0.023 s
testTargetSpriteImageDirNotExists 0.022 s
testAbsoluteImageUrl 0.022 s
testCssOutputDir 0.028 s
testMultipleCssFiles 0.041 s
testScaledSpriteImage 0.022 s
testNoSpriteReferences 0.005 s
testMissingImages 0.034 s
testOverridingCssProperties 0.035 s
variableSubstitutionInSpriteImagePath 0 s
- Disabled on JRE version: 21.0.2 -
testSpriteImageUidSha512 0.047 s
testSpriteMargins 0.087 s
testLayoutPropertiesFromSpriteImageDirective 0.034 s
testUnsupportedSpriteProperties 0.033 s
testIndividualCssFileDoesNotExist 0.001 s
testDirectoryProvidedAsIndividualCssFile 0.001 s
testFractionalScaledSpriteImage 0.021 s
testCssFileApiInvocation 0.031 s
testSimpleHorizontalSprite 0.033 s
testIndividualCssFilesWithoutOutputDir 0.040 s
testLargeRepeat 0.051 s

SpriteDirectiveOccurrenceCollectorTest

testSpriteReferenceDirectiveExtraction 0.001 s
testSpriteReferenceImageUrlExtractionMoreRules 0 s
testSpriteReferenceImageUrlExtraction 0.001 s
testSpriteImageDirectiveExtractionOneDirectiveComplex 0.001 s
testSpriteReferenceImageUrlExtractionNoBackgroundImage 0 s
testSpriteImageDirectiveExtractionOneDirectiveSimple 0 s
testSpriteImageDirectiveExtractionMoreDirectives 0.001 s

SpriteImageDirectiveTest

testUnsupportedProperties 0 s
testEmpty 0 s
testNoUrl 0.001 s
testNoId 0 s
testMatteColor 0.001 s
testSpriteLayoutProperties 0 s
testUnsupportedSpriteImageFormat 0.001 s
testUidSha512 0 s
variablesCorrectSyntax 0.001 s
testUidDate 0 s
testUidNone 0 s
testUnrecognizedFormat 0 s
testIdUrlProvided 0.001 s
variablesEmptyVariable 0.001 s
variablesUnsupportedVariable 0 s
testUidUnknown 0.001 s
variablesUnbalancedBrackets 0 s
testUnsupportedLayout 0 s
variablesAndQueryStringCorrectSyntax 0.001 s
testNegativeMarginValues 0.001 s
testSpriteScalingProperty 0.001 s
testLeadingSpaceInUrl 0 s
variablesMissingDollar 0.001 s

SpriteReferenceDirectiveTest

testOverriddenSpriteLayoutFromSpriteImageDirective 0.001 s
testSpriteLayoutFromSpriteImageDirective 0 s
testSpriteRefOnlyHorizontalImage 0 s
testUnsupportedProperties 0 s
testMismatchedRightAlignment 0.001 s
testSpriteRefNotFound 0 s
testEmpty 0 s
testUnsupportedAlignment 0.001 s
testCannotParseMargin 0 s
testMismatchedTopAlignment 0 s
testSpriteMargins 0.001 s
testMismatchedBottomAlignment 0 s
testSpriteRefOnly 0 s
testMismatchedLeftAlignment 0 s
testNegativeMarginValues 0 s
testSpriteRefAlignment 0.001 s

BufferedImageUtilsTest

testHasAlphaTransparencyBitmask 0.005 s
testCountDistinctColorsGradient 0.008 s
testHasPartialAlphaTransparencyNoTransparency 0.004 s
testCountDistinctColorsNoTransparency 0.004 s
testCountDistinctColorsTransparency 0.004 s
testHasAlphaTransparencyNoTransparency 0.004 s
testHasPartialAlphaTransparencyPartial 0.005 s
testHasPartialAlphaTransparencyBitmask 0.004 s
testCountDistinctColorsTransparencyMatted 0.004 s
testHasAlphaTransparencyPartial 0.004 s

ColorQuantizerTest

testOneColor 0.004 s
testManyColorsQuantize 0.011 s
testFullAlpha 0.005 s
testExactColorsQuantize 0.006 s
testExactColorsReduce 0.005 s
testManyColorsReduce 0.010 s
testCanReduceWithoutDataLoss 0.028 s
testNoAlpha 0.005 s
testBitAlpha 0.004 s

FileUtilsTest

canonicalizeTwoSegmentsNonCanonical 0 s
canonicalizeOneSegment 0 s
canonicalizeTwoSegmentsNonCanonicalTrailingSeparator 0 s
canonicalizeTwoSegmentsCanonical 0 s
canonicalizeMoreSegmentsNonCanonical 0.001 s
canonicalizeEmpty 0 s
canonicalizeCanonicalStartingWithParent 0 s
canonicalizeMoreParents 0 s

Failure Details

[Summary] [Package List] [Test Cases]


variableSubstitutionInSpriteImagePath
- skipped: Disabled on JRE version: 21.0.2