I'mI recently started using Semantic VersioningSemantic Versioning.
But dueDue to conflicts with my olderprevious versioning conventionsconvention (which I have writtencreated myself), I am very confused about the consideration ofversioning unit tests as a part of the Public APIpublic API.
As mentioned byin the SemVer documentationsdocumentation:
Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backward compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.
I certainly believe that unit tests are a part of the public API as they can have huge effects on not only on the quality of the source code, but evenalso on the functionality of the public API.
What should we do with our versioning system consideringtaking into account the importance and influence of the unit tests?
How should they affect the versioning?
Should they be considered in the versioning as a segment of the public API?