AEM 6.5 to AEM as a Cloud Service migration: JUnit test and content volume requirements

This article explains the requirements and best practices for JUnit test coverage and content volume assessment when migrating from Adobe Experience Manager (AEM) 6.5 to AEM as a Cloud Service.

Description description

Environment

  • Adobe Experience Manager (AEM) 6.5
  • AEM as a Cloud Service
  • Cloud Manager

Issue/Symptoms

  • When planning a migration from AEM 6.5 to AEM as a Cloud Service, it is important to understand the expectations for unit testing and how to assess your production content volume.
  • Cloud Manager, which is used for deployments in AEM as a Cloud Service, enforces code quality checks that include unit test execution and code coverage evaluation.
  • Understanding the size and count of your assets and pages is essential for migration planning.

Resolution resolution

Follow these steps to resolve the issue:

  1. Review your custom Java codebase for existing JUnit test classes, typically under core/src/test/java.

  2. Add meaningful JUnit unit tests for your custom Java code if coverage is low or missing. Aim for at least 50% code coverage as a recommended baseline to meet Cloud Manager code quality expectations.

  3. Ensure all existing unit tests pass, as failing tests can block pipeline progression in Cloud Manager.

  4. Assess the content volume in your current AEM 6.5 environment:

    • Use the AEM Assets console to view asset counts and browse asset paths, for example, /content/dam/your-path.
    • Use the AEM Reports feature or run JCR queries to obtain counts and sizes of assets and pages. For example, use Query Builder or CRX/DE Lite to run queries for asset and page counts under specific paths.
    • To estimate total content volume (storage size), sum the sizes of assets and pages as reported by AEM tools or reports.
  5. For information about storage entitlement or allocation in AEM as a Cloud Service, consult your organization administrator or refer to official Adobe documentation.

  6. After completing these assessments, verify that your unit test coverage meets the recommended baseline and that you have documented your content volume for migration planning.

recommendation-more-help
experience-cloud-kcs-help-kbarticles