Skip to content

[MRESOLVER-677] Test suite for version comparison #1347

Open
@jira-importer

Description

@jira-importer

Elliotte Rusty Harold opened MRESOLVER-677 and commented

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.


No further details from MRESOLVER-677

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions