Elliotte Rusty Harold created MRESOLVER-677:
-----------------------------------------------

             Summary: Test suite for version comparison
                 Key: MRESOLVER-677
                 URL: https://issues.apache.org/jira/browse/MRESOLVER-677
             Project: Maven Resolver
          Issue Type: Test
            Reporter: Elliotte Rusty Harold


ComparableVersion in core, maven resolver, and probably a few other places have 
independent code to parse and compare version numbers. 

The test cases should be pulled out into a data document that is independent of 
the test suite or even language. That is, just a bunch of text (likely JSON or 
XML but maybe CSV for ease of JUnit integration) with two versions and the 
expected result. Then this can be loaded by the different version parsing 
libraries, perhaps including non-Maven things like Gradle and semver.

Use a parameterized test in JUnit 5 to pull in the test cases.

Fix any discrepancies between the independent code paths, and update docs as 
necessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to