You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Roy Teeuwen (Jira)" <ji...@apache.org> on 2026/07/10 19:21:00 UTC
[jira] [Closed] (SLING-12510) Migrate Apache Sling Script JavaScript Support Test Cases to JUnit 5 for Compatibility with Sling Mocks Framework
[ https://issues.apache.org/jira/browse/SLING-12510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roy Teeuwen closed SLING-12510.
-------------------------------
> Migrate Apache Sling Script JavaScript Support Test Cases to JUnit 5 for Compatibility with Sling Mocks Framework
> -----------------------------------------------------------------------------------------------------------------
>
> Key: SLING-12510
> URL: https://issues.apache.org/jira/browse/SLING-12510
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting JavaScript 3.1.4
> Reporter: Scott Yuan
> Assignee: Scott Yuan
> Priority: Minor
> Fix For: Scripting JavaScript 3.1.6
>
> Original Estimate: 7.5h
> Remaining Estimate: 7.5h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)