Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1484

Add openrewrite.org recipe for YangParserTestUtils.parseYangResource()

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • parser

      YANGTOOLS-1483 improves ergonomics of unit tests to a large extent: it allows hosting a YANG snippet in Java code.

      We have plenty of UT code which could leverage this facility, but migration is tedious for little gain.

      openrewrite to the rescue: it allows us to migrate code using a simple recipe, which then is plugged into maven build and performs the transform.

      Write such a plugin, which will inline src/test/resources (and remove them) as part of its run.

      For now, let's inline any YANG file under 50 lines, which should be a tuneable default.

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: