Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
106 0 0 0 100% 6.832 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
net.alchim31.maven.yuicompressor 91 0 0 0 100% 6.651 s
com.github.hazendaz.maven.yuicompressor_maven_plugin 15 0 0 0 100% 0.181 s

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

net.alchim31.maven.yuicompressor

- Class Tests Errors Failures Skipped Success Rate Time
AggregationTestCase 17 0 0 0 100% 1.003 s
BasicRhinoShellTest 14 0 0 0 100% 0.183 s
ErrorReporter4MojoTest 22 0 0 0 100% 0.101 s
JSLintCheckerTest 2 0 0 0 100% 0.062 s
JSLintMojoTest 4 0 0 0 100% 0.141 s
SourceFileTest 7 0 0 0 100% 0.019 s
YuiCompressorMojoTest 25 0 0 0 100% 5.142 s

com.github.hazendaz.maven.yuicompressor_maven_plugin

- Class Tests Errors Failures Skipped Success Rate Time
HelpMojoTest 15 0 0 0 100% 0.181 s

Test Cases

[Summary] [Package List] [Test Cases]

HelpMojoTest

testExecute_withSpecificGoal_help 0.071 s
testExecute_invalidIndentSize_usesDefault 0.011 s
testExecute_invalidLineLength_usesDefault 0.006 s
testExecute_detailTrue_allGoals 0.013 s
testExecute_pluginHelpXmlPresent_doesNotThrow 0.004 s
testExecute_defaultParams_listsAllGoals 0.005 s
testExecute_withSpecificGoal_compress 0.004 s
testExecute_bothInvalid_usesDefaults 0.006 s
testExecute_largeIndentSize_detail 0.005 s
testExecute_unknownGoal_noOutput 0.004 s
testExecute_detailTrue_specificGoal 0.005 s
testExecute_detailTrue_jslintGoal 0.004 s
testExecute_emptyGoal_listsAllGoals 0.003 s
testExecute_shortLineLength_wrapsLines 0.003 s
testExecute_withSpecificGoal_jslint 0.003 s

AggregationTestCase

testInsertFileHeaderWithNewLine 0.860 s
test0to1 0.009 s
test1to1 0.008 s
test2to1 0.013 s
testAbsolutePathFromOutside 0.007 s
testFixLastSemicolon 0.009 s
testInvalidInputDirectory_throwsIllegalStateException 0.005 s
test2to1WithNewLine 0.007 s
testIncrementalBuildNoDelta 0.008 s
test2to1Order 0.008 s
testInsertFileHeader 0.010 s
testExcludes_wildcardIncludeWithExclude 0.008 s
testAbsolutePathFromInside 0.007 s
testIncrementalBuildWithDelta 0.005 s
testRemoveIncluded 0.008 s
testNoDuplicateAggregation 0.012 s
testAutoExcludeWildcards 0.011 s

BasicRhinoShellTest

testVersionGetSet 0.089 s
testProcessOptions_nonFlagArg_returnsRemainingArgs 0.001 s
testWarnDoesNotThrow 0.003 s
testLoad_withValidFile_doesNotThrow 0.032 s
testPrintLogs 0.004 s
testProcessOptionsVersion 0.001 s
testReadFileThrowsRuntimeException 0.002 s
testExec_withValidScriptFile_doesNotThrow 0.031 s
testExec_withScriptThatCallsPrint_doesNotThrow 0.006 s
testGetClassName_returnsGlobal 0.002 s
testReadFileReturnsContent 0.002 s
testProcessOptions_noArgs_returnsEmptyArray 0.002 s
testQuitSetsFlag 0.002 s
testHelpDoesNotThrow 0.002 s

ErrorReporter4MojoTest

testWarning_whenAcceptWarnTrue_logsWarning 0.065 s
testInitialCountersAreZero 0.002 s
testWarning_whenAcceptWarnFalse_doesNotNotifyBuildContext 0.002 s
testSetDefaultFileName_nonEmpty_usedInMessage 0.003 s
testMessageFormat_includesSourceLineColumn 0.002 s
testRuntimeError_throwsEvaluatorException 0.002 s
testMessageFormat_includesLineSource 0.002 s
testSetDefaultFileName_empty_clearsDefaultName 0.001 s
testError_multipleCallsAccumulateCount 0.001 s
testWarning_whenAcceptWarnTrue_incrementsWarningCount 0.001 s
testWarning_whenAcceptWarnTrue_addsBuildContextMessage 0.002 s
testMessageFormat_nullSourceName_usesDefaultFilename 0.001 s
testErrorAndWarningCountersAreIndependent 0.001 s
testWarning_whenAcceptWarnFalse_doesNotLog 0.001 s
testError_logsToMavenLog 0.001 s
testWarning_whenAcceptWarnFalse_doesNotIncrementCount 0.001 s
testError_addsBuildContextMessage 0.001 s
testRuntimeError_incrementsErrorCount 0.002 s
testSetFile_updatesSourceFileForBuildContext 0.002 s
testMessageFormat_noSourceAtAll_onlyMessageText 0.001 s
testMessageFormat_nullMessage_showsUnknownError 0.001 s
testError_incrementsErrorCount 0.001 s

JSLintCheckerTest

testConstructorCreatesTempFile 0.005 s
testCheckCallsBasicRhinoShellExec 0.057 s

JSLintMojoTest

testMojoExecute_withValidJsFile_doesNotThrow 0.129 s
testMojoExecute_skipTrue_doesNotProcess 0.005 s
testGetDefaultIncludes_returnsJsGlob 0.003 s
testAfterProcess_doesNotThrow 0.002 s

SourceFileTest

testToFileDestRootWhenDestAsSourceAndFileDoesNotExist 0.003 s
testConstructorWithoutExtension 0.002 s
testConstructorWithExtension 0.002 s
testToFileDestRootWhenDestAsSourceAndFileExists 0.003 s
testToDestFileWithSuffixNoExtension 0.002 s
testToFileSrcRoot 0.003 s
testToDestFileWithSuffix 0.002 s

YuiCompressorMojoTest

testGzipIfRequested_fileNotExists_returnsNull 1.364 s
testMojoExecute_nosuffix_writesOriginalFilename 0.412 s
testMojoExecute_statisticsEnabled_doesNotThrow 0.250 s
testGzipIfRequested_validFile_createsGzFile 0.099 s
testMojoExecute_skipTrue_doesNotProcess 0.105 s
testRatioOfSize_regularFiles 0.082 s
testGzipIfRequested_nullFile_returnsNull 0.095 s
testRatioOfSize_sameSize 0.088 s
testMojoExecute_gzipAndStatistics_cssFile 0.208 s
testGzipIfRequested_gzipDisabled_returnsNull 0.079 s
testMojoExecute_withLinebreakpos_jsFile 0.196 s
testMojoExecute_nomunge_doesNotObfuscate 0.184 s
testMojoExecute_compressesJsFile 0.174 s
testMojoExecute_resourcesProcessed_whenNotExcluded 0.175 s
testMojoExecute_useSmallestFile_keepOriginalWhenCompressedIsLarger 0.179 s
testGzipIfRequested_alreadyGzipped_returnsNull 0.058 s
testMojoExecute_statisticsEnabled_withCss 0.178 s
testMojoExecute_disableOptimizations_producesOutput 0.180 s
testMojoExecute_alreadyMinifiedFile_isSkipped 0.057 s
testMojoExecute_forceOption_recompressesExistingOutput 0.231 s
testMojoConfiguredByHarness_hasExpectedConfigValues(YuiCompressorMojo) 0.108 s
testRatioOfSize_emptyBaseFile 0.065 s
testMojoExecute_nocompress_copiesFileAsIs 0.191 s
testMojoExecute_compressesCssFile 0.178 s
testMojoExecute_gzipEnabled_createsGzFile 0.184 s