Gradle Test Run :versioning:test

TestSemanticVersion

summary

24

tests

0

failures

0

skipped

0.120s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
builder can be constructed from existing version testAsBuilder() 1 0 0 0.001s 100%
should be possible to build SemanticVersion instances with builders testBuilders() 1 0 0 0.005s 100%
builder should allow adding to or overwriting build metadata testBuildMetadataBuilder() 1 0 0 0.001s 100%
should throw if a build metadata component is invalid testBuildMetadataComponentInvalid() 1 0 0 0.001s 100%
should throw if a build metadata component is null testBuildMetadataComponentIsNull() 1 0 0 0.001s 100%
should stringify build metadata components as expected testBuildMetadataToString() 1 0 0 0s 100%
should produce version 0.0.0 if no parameters are supplied testDefault() 1 0 0 0.001s 100%
can be incremented by major, minor and release versions testIncrement() 1 0 0 0.002s 100%
can be incremented to an arbitrary initial pre-release version testIncrementToCustomPreRelease() 1 0 0 0.001s 100%
cannot be incremented to a negative pre-release version testIncrementToNegativePreReleaseFails() 1 0 0 0.001s 100%
can be incremented to a pre-release version testIncrementToPreRelease() 1 0 0 0.002s 100%
should match equal versions (by Java equals rules, not SemVer equals rules) testIsEqual() 1 0 0 0.005s 100%
should match equivalent versions (by SemVer equals rules, not Java equals rules) testIsEquivalent() 1 0 0 0.035s 100%
should reject negative version numbers testNegativeSemanticVersions() 1 0 0 0.001s 100%
should handle precedence examples per the specification testPrecedence() 1 0 0 0.007s 100%
builder should allow adding to or overwriting build metadata testPreReleaseBuilder() 1 0 0 0.009s 100%
should have a semantically correct equals implementation for PreReleaseIdentifier testPreReleaseComponentEquals() 1 0 0 0.001s 100%
should have a semantically correct equals implementation for PreReleaseIdentifier testPreReleaseComponentHashCode() 1 0 0 0.001s 100%
should throw if a pre-release component is empty testPreReleaseComponentIsEmpty() 1 0 0 0.001s 100%
should throw if a pre-release component is null testPreReleaseComponentIsNull() 1 0 0 0.001s 100%
should throw if a pre-release component has a leading zero testPreReleaseComponentLeadingZeroes() 1 0 0 0.002s 100%
should accept a pre-release component of '0' testPreReleaseComponentZero() 1 0 0 0.002s 100%
should stringify pre-release components as expected testPreReleaseToString() 1 0 0 0.001s 100%
should stringify versions as expected testToString() 1 0 0 0.001s 100%