Skip to main content

Discover What’s New with Development Lifecycles for Winter '26

Learning Objectives

After completing this unit, you’ll be able to:

  • Configure DevOps Testing to manage test assets, define quality gates, and analyze results within one platform.
  • Incorporate Agentforce Testing Center into DevOps Testing to validate AI agents before deployment.
  • Apply ApexGuru insights to detect antipatterns and optimize Apex code performance.
  • Monitor metadata changes with DX Inspector to detect drift and improve environment management.
  • Execute and retrieve Flow test results.
  • Use Agentforce DX commands and debugging tools to build, test, and optimize AI agents.

Streamline Your Software Testing Lifecycle with DevOps Testing

Salesforce now brings AI-powered testing and quality assurance directly into DevOps Center with the generally available DevOps Testing product. This solution eliminates the need to manage test assets across multiple tools and providers by serving as a single source of truth for all test assets. Release managers, testers, architects, and other stakeholders can collaborate more effectively, integrating Salesforce testing tools and partner test providers, defining quality gates, running test suites, and analyzing test results all within a unified platform.

DevOps Testing enhances the application lifecycle management (ALM) process by standardizing testing procedures, reducing production issues, and ensuring higher-quality releases. It supports both native Salesforce and third-party test suites, giving you flexibility in how you validate code and automate testing workflows. This integration is particularly relevant for architects and developers focused on testing methodologies, test automation, and ensuring delivery of quality code.

This capability is available in Lightning Experience for Professional, Enterprise, Performance, Unlimited, and Developer editions. To use DevOps Testing, users must have the DevOps Testing Manager or DevOps Testing User permission set, and access and permissions for DevOps Center. Setup is straightforward: Install the DevOps Testing managed package from AppExchange, then navigate to Setup → DevOps Testing to begin managing test assets, running suites, and analyzing results.

By integrating DevOps Testing into your pipeline, teams can streamline testing, reduce errors in production, and maintain a higher standard of quality across all Salesforce deployments.

Integrate Agentforce Testing Center with DevOps Testing

Salesforce now enables integration of Agentforce Testing Center with DevOps Testing, bringing AI agent testing directly into the DevOps pipeline. This integration lets architects and release managers decide how they want to run agent test assets, assign and run tests, set quality gates, and analyze results—all within a unified platform. By incorporating agent testing into DevOps Testing, you can ensure that AI agents perform as intended before deployment, reducing errors and increasing confidence in production systems.

This integration extends testing methodologies, including test automation, to AI-driven agents. It reinforces continuous integration and quality gates as part of the application lifecycle management (ALM) process, ensuring that AI agents meet performance and correctness standards before being released.

This feature is available in Lightning Experience for Professional, Enterprise, Performance, Unlimited, and Developer editions, starting in June 2025. By leveraging this integration, you can bring AI agent validation into your existing DevOps workflows, streamlining testing, enhancing quality assurance, and maintaining high standards for AI deployments.

Optimize Code with ApexGuru

Salesforce now provides ApexGuru, an antipattern detection feature designed to help you optimize Apex code and improve performance. ApexGuru identifies common coding issues, such as SOQL queries inside loops and inefficient query filters, and provides actionable recommendations for enhancing code efficiency. By highlighting expensive string operations, unnecessary debug statements, and other performance bottlenecks, ApexGuru empowers you to write cleaner, more scalable Apex code.

ApexGuru promotes the delivery of high-quality code by enforcing coding standards and helping prevent governor limit issues. It contributes to the platform’s static code analysis capabilities, ensuring that code deployed to production is optimized for both performance and scalability. This is especially valuable for orgs that handle large data volumes or complex business logic, where inefficient queries can significantly impact system performance.

ApexGuru is generally available at no additional cost for Unlimited Edition Full Sandbox, Signature, and Scale Test customers. To access ApexGuru, navigate in Setup to the Scale Center, select Scale Insights, and then open ApexGuru Insights to review antipattern detections and recommended optimizations.

Track Org Metadata with DX Inspector

Salesforce introduces DX Inspector, a new management tool designed to enhance metadata tracking and visualization within sandboxes and scratch orgs. DX Inspector provides a unified view of all modifications across the org, giving you greater visibility into metadata changes and making it easier to monitor the state of an environment. By identifying metadata drift and providing insights into complex deployments, DX Inspector supports best practices for Application Lifecycle Management (ALM).

The DX Inspector panel is accessible at the top of a scratch org page. From here, you can quickly identify which org you are working in and review metadata changes on the Changes tab. The panel can also be hidden when not needed, allowing for a clean workspace while still providing easy access to detailed metadata information when required.

This feature is available in scratch orgs accessed through Lightning Experience and is accessible to users with the Customize Application permission. By using DX Inspector, you gain better control over metadata, streamline environment management, and reduce the risk of deployment issues caused by unexpected changes.

Flow Testing Improvements in Salesforce CLI

Salesforce CLI version 2.85.7 introduces powerful new ways to run and review flow tests directly from the command line. With the new logic run test and logic get test commands, you can execute both Apex and Flow tests in one go. The expanded --tests flag lets you specify Flow tests using the format FlowTesting.<flow-test-name>, and the new --test-category flag helps you narrow the scope of tests. Run tests asynchronously for faster feedback or use the --synchronous flag to view results immediately.

These updates create a unified testing framework across Apex and Flow, enabling you to include flow tests in DevOps Testing as part of your automated test suite or quality gate—making flow debugging and validation faster, clearer, and more efficient than ever.

For full details, check the Salesforce CLI release notes. Salesforce publishes a new stable CLI version weekly on Wednesdays, so this page is your go-to source for the most recent updates, enhancements, and fixes.

Keep Up with the Latest Agentforce DX Enhancements

Salesforce has made significant enhancements to Agentforce DX, supporting the creation, development, and testing of AI agents through both the CLI and VS Code extension. With the general availability of most Agentforce DX commands, except for the agent preview command (still in beta), you can now manage agents more efficiently and integrate them into development and testing workflows.

All Agentforce DX commands, such as agent create and agent test run, are now marked as just-in-time (JIT). This means that when you run an agent command, Salesforce CLI automatically checks whether the associated plugin is installed and installs it if necessary, streamlining setup and reducing friction for developers.

Agentforce DX also provides enhanced testing and debugging capabilities. The agent preview command lets you interactively chat with an active agent in VS Code, observing how it responds to statements, questions, and commands. With the new --apex-debug flag, any conversation message that executes Apex code generates an Apex debug log file, which can be used with the Apex Replay Debugger. This enables you to troubleshoot and optimize Apex code executed within agent interactions, improving both agent performance and overall code quality.

The agent generated test-spec command has been updated to prompt you for additional input when building test YAML files. You can now add custom evaluations to test cases, verifying that agent responses meet specific criteria, and include boilerplate conversation history to simulate interactions leading up to a test utterance. Test results can also include detailed JSON data about invoked actions—such as Apex classes, Flows, and Salesforce objects—accessible through the --verbose flag in CLI commands or the Show Generated Data setting in VS Code.

Finally, Agentforce DX makes managing agents easier than ever. You can activate or deactivate agents using CLI commands (agent activate / agent deactivate) or directly in VS Code via the command palette, making the agents immediately available or unavailable to users.

These enhancements collectively improve the debugging and testing experience for AI agent implementations, supporting best practices for methods to ensure the delivery of quality code. You can now build, test, and optimize agents with deeper insights into both agent behavior and underlying Apex logic.

This functionality is available for Agentforce DX CLI version 2.85.7 and later and Agentforce DX for VS Code version 1.1.1 and later.

Summary

In this unit, you’ve explored the latest Salesforce tools and enhancements designed to streamline development lifecycles and improve code quality. Together, these features enable architects, developers, and release managers to maintain higher-quality releases, reduce errors, and confidently manage both traditional and AI-driven workflows across the Salesforce platform.

Resources

Compartilhe seu feedback do Trailhead usando a Ajuda do Salesforce.

Queremos saber sobre sua experiência com o Trailhead. Agora você pode acessar o novo formulário de feedback, a qualquer momento, no site Ajuda do Salesforce.

Saiba mais Continue compartilhando feedback