Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
185 0 0 0 100% 2.253

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
1 0 0 0 100% 0
de.smartics.testdoc.core.doc.names 8 0 0 0 100% 0.003
de.smartics.testdoc.core.source 36 0 0 0 100% 0.091
de.smartics.testdoc.collect.processor 17 0 0 0 100% 1.186
de.smartics.testdoc.core.export 26 0 0 0 100% 0.165
de.smartics.testdoc.collect.extractor 2 0 0 0 100% 0.148
de.smartics.testdoc.core.doc 92 0 0 0 100% 0.629
de.smartics.testdoc.core.doc.adapter 3 0 0 0 100% 0.031

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

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

de.smartics.testdoc.core.doc.names

Class Tests Errors Failures Skipped Success Rate Time
CaseSensitiveTestNameUtilsTest 4 0 0 0 100% 0.001
EnglishTestNameUtilsTest 4 0 0 0 100% 0.002

de.smartics.testdoc.core.source

Class Tests Errors Failures Skipped Success Rate Time
PositionCompareToTest 3 0 0 0 100% 0.022
PositionConstructorTest 7 0 0 0 100% 0
PositionObjectTest 9 0 0 0 100% 0.066
PositionSerializableTest 1 0 0 0 100% 0
SourceCodeLocationConstructorTest 6 0 0 0 100% 0
SourceCodeLocationObjectTest 9 0 0 0 100% 0.003
SourceCodeLocationSerializableTest 1 0 0 0 100% 0

de.smartics.testdoc.collect.processor

Class Tests Errors Failures Skipped Success Rate Time
TestDocProcessorTest 17 0 0 0 100% 1.186

de.smartics.testdoc.core.export

Class Tests Errors Failures Skipped Success Rate Time
BaseAbstractExportAdapterTest 2 0 0 0 100% 0
BaseAbstractOutputManagerTest 4 0 0 0 100% 0.015
FileOutputManagerTest 4 0 0 0 100% 0.094
UnitTestDocIndexExporterConstructorTest 2 0 0 0 100% 0.003
UnitTestDocIndexExporterTest 5 0 0 0 100% 0.01
XmlExporterTest 9 0 0 0 100% 0.043

de.smartics.testdoc.collect.extractor

Class Tests Errors Failures Skipped Success Rate Time
TestDocExtractorConstructorTest 2 0 0 0 100% 0.148

de.smartics.testdoc.core.doc

Class Tests Errors Failures Skipped Success Rate Time
ScenarioTestDocConstructorTest 4 0 0 0 100% 0.001
ScenarioTestDocObjectTest 9 0 0 0 100% 0.075
ScenarioTestDocSerializableTest 1 0 0 0 100% 0.011
SortKeyCompareToTest 3 0 0 0 100% 0.099
SortKeyObjectTest 11 0 0 0 100% 0.167
SortKeySerializableTest 1 0 0 0 100% 0.001
TestMethodDocConstructorTest 4 0 0 0 100% 0.001
TypeCompareToTest 3 0 0 0 100% 0.054
TypeConstructorTest 6 0 0 0 100% 0.001
TypeObjectTest 9 0 0 0 100% 0.051
TypeSerializableTest 1 0 0 0 100% 0
UnitTestDocCompareToTest 3 0 0 0 100% 0.126
UnitTestDocConstructorTest 5 0 0 0 100% 0
UnitTestDocIndexDeregisterTestCaseTest 6 0 0 0 100% 0.001
UnitTestDocIndexGetByTestCaseTest 3 0 0 0 100% 0
UnitTestDocIndexTest 5 0 0 0 100% 0
UnitTestDocObjectTest 9 0 0 0 100% 0.036
UnitTestDocRemoveScenariosTest 5 0 0 0 100% 0.001
UnitTestDocSerializableTest 1 0 0 0 100% 0.004
UnitTestDocTest 3 0 0 0 100% 0

de.smartics.testdoc.core.doc.adapter

Class Tests Errors Failures Skipped Success Rate Time
JmxExportAdapterClientTest 2 0 0 0 100% 0.031
SingletonInMemoryExportAdapterTest 1 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

TestDocExtractorConstructorTest

rejectsConstructionWithNullExtractorConfig 0.148
rejectsConstructionWithNullVariableName 0

TestDocProcessorTest

classAnnotatedTest 0.653
classAnnotatedWithMethodPropertyTest 0.047
methodAnnotatedTest 0.058
fieldAnnotatedTest 0.03
invalidAnnotatedAtTypeAndField 0.026
fieldAnnotatedWithMethodPropertyTest 0.029
mixedAnnotatedWithType 0.035
mixedAnnotatedWithField 0.036
extractsTwoScenariosInAClassWithTwoTestAndTwoHelperMethods 0.032
extractsCategoriesOnTestMethod 0.032
extractsCategoriesOnTestCase 0.034
usesTestDocHintsSentence 0.032
usesTestDocHintsSortKey 0.031
usesTestDocHintsSortKeyTypeLevel 0.025
acceptsTheories 0.027
extendingTheory 0.033
localVarAnnotatedTestIsNotSupported 0.026

JmxExportAdapterClientTest

registersMBeanOnConstruction 0.03
delegatesToJmxBean 0.001

SingletonInMemoryExportAdapterTest

providesAccessToIndex 0

CaseSensitiveTestNameUtilsTest

translatesBlankSeparatedWordsToGermanSentences 0.001
throwsExceptionWhenInputIsNull 0
throwsExceptionWhenInputIsEmpty 0
throwsExceptionWhenInputIsBlank 0

EnglishTestNameUtilsTest

throwsExceptionWhenInputIsNull 0
throwsExceptionWhenInputIsEmpty 0.001
throwsExceptionWhenInputIsBlank 0
translatesCamelCaseToEnglishSentences 0.001

ScenarioTestDocConstructorTest

rejectsConstructionWithBlankTestCaseType 0
rejectsConstructionWithNullTestCaseType 0.001
acceptsNullAsValueForCategories 0
allowsAccessToProperties 0

ScenarioTestDocObjectTest

equalsIsReflexive 0.012
equalsIsSymmetric 0.012
equalsIsTransitive 0.023
equalsIsConsistent 0.007
equalsReturnFalseOnNull 0.003
hashCodeIsConsistent 0.002
hashCodeIsConsistentWithEquals 0.007
hashCodeProducesUnequalHashCodesForUnequalInstances 0.006
toStringRunsWithoutFailure 0.003

ScenarioTestDocSerializableTest

isSerializable 0.011

SortKeyCompareToTest

compareToIsSymmetric 0.013
compareToIsTransitive 0.074
compareToIsConsistentToEquals 0.012

SortKeyObjectTest

providesAccessToTheMainKey 0.001
providesAccessToTheIndexKey 0.001
equalsIsReflexive 0.004
equalsIsSymmetric 0.023
equalsIsTransitive 0.098
equalsIsConsistent 0.013
equalsReturnFalseOnNull 0.002
hashCodeIsConsistent 0.002
hashCodeIsConsistentWithEquals 0.01
hashCodeProducesUnequalHashCodesForUnequalInstances 0.011
toStringRunsWithoutFailure 0.002

SortKeySerializableTest

isSerializable 0.001

TestMethodDocConstructorTest

allowsAccessToProperties 0
rejectsConstructionWithBlankTestName 0.001
rejectsConstructionWithNoTestSentence 0
rejectsConstructionWithNoLocation 0

TypeCompareToTest

compareToIsSymmetric 0.007
compareToIsTransitive 0.043
compareToIsConsistentToEquals 0.004

TypeConstructorTest

rejectsNullAsUutType 0
rejectsEmptyStringAsUutType 0
rejectsWhitespaceStringAsUutType 0
rejectsUutTypeWithADotAtTheEnd 0
acceptsUutTypeWithoutPackage 0
acceptsUutTypeWithPackage 0.001

TypeObjectTest

equalsIsReflexive 0.001
equalsIsSymmetric 0.006
equalsIsTransitive 0.028
equalsIsConsistent 0.005
equalsReturnFalseOnNull 0.001
hashCodeIsConsistent 0.001
hashCodeIsConsistentWithEquals 0.005
hashCodeProducesUnequalHashCodesForUnequalInstances 0.004
toStringRunsWithoutFailure 0

TypeSerializableTest

isSerializable 0

UnitTestDocCompareToTest

compareToIsSymmetric 0.015
compareToIsTransitive 0.097
compareToIsConsistentToEquals 0.014

UnitTestDocConstructorTest

acceptsNoBlankUutTypeString 0
acceptsNoNullUutType 0
acceptsNullScenarios 0
acceptsNullScenariosNotAsVararg 0
acceptsScenariosViaVarargs 0

UnitTestDocIndexDeregisterTestCaseTest

deregisteringUnknownTestCaseFromEmptyUutIsSilentlyIgnored 0
deregisteringUnknownTestCaseIsSilentlyIgnored 0
deregisteringTestCaseFromUutContainingOnlyOnTestScenarioWithThisTestCaseLeavesTheUutWithoutScenarios 0
deregisteringTestCaseFromUutContainingMultipleTestScenarioForThisTestCaseLeavesTheUutWithoutScenarios 0
deregisteringTestCaseFromUutContainingScenarioBackedUpByDifferentTestCasesLeavesOnlyTheScenariosOfOtherTestCases 0
deregisteringTestCaseMayAffectMoreThanOneUut 0.001

UnitTestDocIndexGetByTestCaseTest

allowsAccessToTestCaseOfRegisteredUnitTestDoc 0
allowsAccessToTestCaseOfRegisteredUnitTestDocEvenIfMergingWasConducted 0
evenIfTwoTestCasesProvideTestsForOneUutOnlyThatOfTheRequestedTestCaseAreReturnedOnRequest 0

UnitTestDocIndexTest

showsIfIsEmpty 0
providesAccessToRegisteredDocs 0
allowsRegisteringUnitTestDoc 0
allowsReregisteringUnitTestDocWithScenariosThatWillBeMerged 0
ensuresThatAdditionalRegistrationsOfScenariosAreAddedToTheExistingInstance 0

UnitTestDocObjectTest

equalsIsReflexive 0.001
equalsIsSymmetric 0.005
equalsIsTransitive 0.018
equalsIsConsistent 0.003
equalsReturnFalseOnNull 0.001
hashCodeIsConsistent 0.001
hashCodeIsConsistentWithEquals 0.003
hashCodeProducesUnequalHashCodesForUnequalInstances 0.003
toStringRunsWithoutFailure 0.001

UnitTestDocRemoveScenariosTest

rejectsRmovingScenariosWithNullValue 0
removingFromEmptyScenariosIsSilentlyIgnored 0.001
removingFromScenariosNotReferingToTestCaseAreSilentlyIgnored 0
removingFromScenariosContainingOnlyScenariosFromTestCase 0
removingFromScenariosContainingScenariosFromDifferentTestCases 0

UnitTestDocSerializableTest

isSerializable 0.004

UnitTestDocTest

allowsAccessToProperties 0
doesNotAllowToAddScenariosOfDifferentUutEvenIfNoScenariosProvided 0
allowsToAddScenariosOfSameUut 0

BaseAbstractExportAdapterTest

reportsFailure 0
reportsSuccess 0

BaseAbstractOutputManagerTest

initDoesNothing 0.008
closesStream 0.006
runsExporter 0.001
finishDoesNothing 0

FileOutputManagerTest

doesNotAcceptNullForTestDocInstance 0.072
handlesTestDocsInDefaultPackage 0.012
handlesTestDocsWithPackage 0.005
signalsIfFileCannotBeWritten 0.005

UnitTestDocIndexExporterConstructorTest

allowsToSetAnOutputManager 0.003
requiresThatTheManagerIsNotNull 0

UnitTestDocIndexExporterTest

allowsToExportAnIndexOfUnitTestDocs 0.006
requiresThatTheIndexToBeExportedIsNotNull 0
passesUnitTestDocOfTheIndexToManagerWhileCallingInitAndFinishOnTheManagerOnlyOnce 0.001
passesEachUnitTestDocOfTheIndexToManagerOnlyOnce 0.001
exportsNothingIfIndexIsEmpty 0.002

XmlExporterTest

writesTestDocsWithNoScenarios 0.033
writesTestDocsWithOneScenario 0.002
writesTestDocsWithOneScenarioAndCategories 0.001
writesTestDocsWithManyScenarios 0.002
prettyPrintDoesNotFail 0.002
definesXmlExtension 0.001
rejectsNullTestDocWhenCallingExport 0
rejectsNullOutputStreamWhenCallingExport 0.001
allowsConstructionByNoArgsConstructor 0.001

PositionCompareToTest

compareToIsSymmetric 0.004
compareToIsTransitive 0.015
compareToIsConsistentToEquals 0.003

PositionConstructorTest

rejectsConstructionWithLineNumber0 0
rejectsConstructionWithLineNumberSmallerThan0 0
rejectsConstructionWithColumnNumber0 0
rejectsConstructionWithColumnNumberSmallerThan0 0
acceptsConstructionMinimumValues 0
acceptsConstructionMaximumValues 0
allowsToRetrievePropertiesSetByConstructor 0

PositionObjectTest

equalsIsReflexive 0.001
equalsIsSymmetric 0.006
equalsIsTransitive 0.039
equalsIsConsistent 0.006
equalsReturnFalseOnNull 0.001
hashCodeIsConsistent 0.001
hashCodeIsConsistentWithEquals 0.006
hashCodeProducesUnequalHashCodesForUnequalInstances 0.005
toStringRunsWithoutFailure 0.001

PositionSerializableTest

isSerializable 0

SourceCodeLocationConstructorTest

allowsToRetrievePropertiesSetByConstructor 0
rejectsConstructionWithStartIsNull 0
rejectsConstructionWithEndIsNull 0
rejectsConstructionWithStartIsAfterEnd 0
acceptsConstructionWithStartIsEqualToEnd 0
acceptsConstructionWithStartIsBeforeEnd 0

SourceCodeLocationObjectTest

equalsIsReflexive 0.001
equalsIsSymmetric 0
equalsIsTransitive 0
equalsIsConsistent 0.001
equalsReturnFalseOnNull 0
hashCodeIsConsistent 0
hashCodeIsConsistentWithEquals 0
hashCodeProducesUnequalHashCodesForUnequalInstances 0.001
toStringRunsWithoutFailure 0

SourceCodeLocationSerializableTest

isSerializable 0

FieldWithCategoriesOnTestCase

containsNoEmptyElements 0