Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12510

Migrate Apache Sling Script JavaScript Support Test Cases to JUnit 5 for Compatibility with Sling Mocks Framework

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Scripting JavaScript 3.1.4
    • Scripting
    • None

    Description

      The current Apache Sling Script JavaScript Support test cases rely on the outdated Apache Sling Testing Utilities (org.apache.sling.commons.testing), which cannot leverage the latest Sling Mocks framework that supports both JUnit 4 and JUnit 5.

      This old approach hinders progress toward adopting the Sling Mocks framework, which provides a more unified and efficient testing approach. Additionally, it creates challenges for community members trying to contribute using a more up-to-date testing framework.

      This ticket aims to migrate the existing test cases to JUnit 5, enabling the use of the Sling Mocks framework. This will help reduce maintenance gaps and address several issues identified by the SonarQube quality gate process.

      Attachments

        Issue Links

          Activity

            People

              yuansc Scott Yuan
              yuansc Scott Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 7.5h
                  7.5h
                  Remaining:
                  Remaining Estimate - 7.5h
                  7.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified