91黑料网

Articles
12/19/2022
10 minutes

The CI/CD Pipeline: Why Testing Is Required at Every Stage

Written by
Team 91黑料网
Table of contents

In the modern tech landscape, it is crucial to be able to quickly build and deploy code that you know will work. This is achieved through having a continuous integration and continuous delivery (CI/CD) pipeline that properly tests your application before deployment and monitoring it after deployment. In this series of articles on CI/CD, we are going to talk about how to test throughout the CI/CD pipeline, some CI/CD best practices, and we鈥檒l conclude by waxing philosophical about CI/CD and providing some words of encouragement.

In order to truly know that your code is working, you must implement various kinds of testing throughout your deployment pipeline. When testing is a key component of your continuous integration and continuous delivery (CI/CD) implementation, you will be able to deliver with speed and reliability. When configured, your CI/CD pipeline will automatically build, test, and deploy your code when it is merged into a branch. However, even though your pipeline will have the major stages of build, test, and deploy, there is testing that happens throughout the pipeline. In this article, we will discuss what testing is available to you, what pipelines look like, and then discuss how to test throughout the pipeline.

What Kinds of Testing are Available Throughout the CI/CD Pipeline?

The types of tests you use, regardless of workload type (e.g., web app, container, backend application), are going to be largely the same. There will be special considerations for each language and platform and environment. Languages and platforms will use different tooling. Your environments will have different configurations, networks, and secrets. But the fundamental ideas will be the same.

Regardless of language or platform, you will need to test and those principles remain the same. Let鈥檚 run through some core types of testing:

  • Unit Testing: A unit test, as the name implies, tests an individual unit within your code: a function, module, or set of processes. By testing this way, you鈥檒l be able to prove that each portion of the code is functioning correctly.
  • Integration Testing: Once you鈥檝e proven that each unit of your code is functioning properly, you can then do integration testing to make sure that each unit is working properly with each other.
  • Performance Testing: This kind of testing is used to determine if your systems will be responsive and stable.

There are a number of tests you can perform to determine if your system is performant.听Let鈥檚 cover a few of them:

  • Load Testing: Can your system handle the expected load? What about higher loads?
  • Stress Testing: Now that your system can handle high loads, let鈥檚 push the limits and see what it can really handle.
  • Spike Testing: This type of testing determines if the system can handle large and quick spikes in load.
  • Configuration Testing: What happens to the system if we start messing around with its configuration? How does this affect the performance?
  • Security Testing: Security testing checks for flaws in your project鈥檚 security by checking for risks and vulnerabilities.
  • Chaos Testing: This is an extreme form of testing that is used in production environments. Chaos testing will kill nodes, disable ports, and make other heinous configuration changes. The purpose of this chaos is to test the resiliency of your system and, to see if things can self-heal properly. A; and all of this testing is done during business hours so your developers can fix things while they鈥檙e at work, not at three in the morning.
Testing are Available Throughout the CI/CD Pipeline - 91黑料网

Testing Throughout the CI/CD Pipeline

You might be asking yourself: What should I be testing for? How and when should I be doing it? Do I need to test every single line of code? We鈥檝e run through some core testing methodologies, so now let鈥檚 run through a basic CI/CD pipeline and talk about when we should be applying those tests. First, let鈥檚 summarize the basic stages of a CI/CD pipeline and then get more specific:

  • Build: Depending on your specific application and environment configuration, your code is compiled, dependencies are pulled in and the application is built into a deployable artifact. Docker images may be built at this time.
  • Test: Automated tests are run against your code. These tests are written to ensure not only that your code is written correctly, but that it鈥檚 doing what you think it should be doing.
  • Deploy: Your code is deployed to your various environments. This can be fully automated. More often, the code is automatically deployed to the lower environments for testing. Then, in production, there may be needed approvals, a scheduled deployment, or, if all tests pass, an automated deployment.

Build

Your CI/CD pipeline always begins with a version control system. When your code is pushed to the remote repository, it should be automatically built. This could be building a Docker image, compiling code, running through an interpreted language. Even though this stage is going to look different for various types of applications, the core principle remains the same: the successful compilation or interpretation of your code is a test unto itself.

Test

Beyond that, you need to validate that your code is doing what you think it should be doing. This is where unit testing and integration testing come into play. Spend some serious time here and make sure that the results you鈥檙e getting are what you expect. Do you need to test for every single line of code? Absolutely not. In fact, having 100% code coverage is a fundamentally flawed idea because it works under the assertion that all of your tests are good. We are interested in testing for the right situations which will probably not be every line of code. Additionally, if your tests are too simple or too general, your functions can change in significant ways and the tests will still pass (remember, 1/1=1, but so does 1*1). Every test needs to be meaningful and serve a purpose.

Although your code is not yet deployed anywhere, there is some performance testing you can be doing now. Check for optimization and efficiency. Perform security testing to make sure that the base code isn鈥檛 vulnerable. Run through some configuration testing to make sure that your system is robust.

Do your tests need to vary based on the environment? Probably not, unless there are special or obvious caveats. But this is the exception, not the rule. Any differences between environments should be extracted into an environment configuration set and tested for.

Deploy

Once your code is merged into your main branch, it is ready for deployment to your various environments so that it can be tested, vetted, and ultimately proven worthy of production deployment. In this section we will discuss when to tag, merge, and release code. We will also briefly cover different deployment techniques.

When should you tag and release your code? Like all IT questions, it depends. If you鈥檙e using trunk-based development, all of your code will be merged into the main branch. When you are ready for a release, tag the main branch and run that tag through your testing environments before deploying to production. But how often should these releases happen? Again, that depends. For internal services, you can usually release more often. For critical and public systems, a more judicious approach may be warranted, perhaps only releasing on certain days or after certain times. But if your deployment methodology allows it, you can easily roll back to a known safe version which will allow you to deploy more frequently and with more confidence.

5 CI/CD Pipeline Deployment Metholodogies

There are a variety of deployment methodologies that you will need to consider. Let鈥檚 cover some of the more common ones include:

1. Recreate Strategy

The recreate strategy is one of the oldest deployment methods, where the previous version of the application is completely replaced by the new one. While simple to execute, it involves significant risk and downtime, making it impractical for most modern DevOps teams.

  • The old environment is torn down before deploying the new version.
  • Causes service interruptions and potential data loss if deployment fails.
  • Considered outdated and primarily used as a historical example of early deployment methods.

2. Canary Deployments

A canary deployment introduces updates to a small subset of users or systems before releasing to the full environment. This controlled rollout allows teams to identify potential issues early, reducing risk while maintaining uptime.

  • Deploy to a limited group of users or servers first.
  • Monitor performance, stability, and user impact before full rollout.
  • Expand deployment gradually as confidence increases.
  • Minimizes the scope of production issues and ensures near-zero downtime.

3. Blue/Green Deployments

Blue/green deployment uses two identical environments to enable seamless releases and rollbacks. The new version is deployed to an idle environment and tested before traffic is switched over, ensuring no disruption to end users.

  • Maintain two environments: one live (blue) and one idle (green).
  • Deploy updates to the idle environment for testing and verification.
  • Redirect traffic to the new environment once validated.
  • Allows instant rollback to the previous environment if needed.

4. A/B Testing

A/B testing runs two production versions side by side to measure the effect of new features or changes. It鈥檚 often used to validate functionality, performance, or user experience improvements in real-world conditions before a complete rollout.

  • Both environments (A and B) operate live simultaneously.
  • Split user traffic to compare results and gather behavioral data.
  • Analyze metrics like engagement, performance, and conversion rates.
  • Enables data-driven decisions for product and feature optimization.

5. Feature Toggles

Feature toggles, also known as feature flags, give developers control over which features are active in production. This flexibility supports safer, faster releases and makes it easier to test or roll back individual functionality without redeploying code.

  • Turn features on or off dynamically at runtime.
  • Target specific users, regions, or environments with new releases.
  • Simplify rollback by toggling features off instead of redeploying.
  • Supports continuous delivery and controlled feature experimentation.

Ensure That Your CI/CD Pipeline Testing Is Dynamic

Testing throughout the pipeline not only validates your code 鈥 it accelerates delivery. By integrating automated tests at every stage, you can identify issues earlier, deploy with confidence, and maintain a steady flow of high-quality releases. Not every test needs to run in sequence. With the right strategy, teams can parallelize testing to save time and reduce bottlenecks.

91黑料网 helps teams build smarter, more efficient pipelines through DevOps automation and intelligent testing. With the 91黑料网 Salesforce DevOps platform, organizations can automate builds, tests, and deployments across environments 鈥 ensuring consistency, speed, and compliance.

Book a demo

About The Author

#1 DevOps Platform for Salesforce

We build unstoppable teams by equipping DevOps professionals with the platform, tools and training they need to make release days obsolete. Work smarter, not longer.

91黑料网 Renews FedRAMP Authorization and Advances Toward IL5 to Support U.S. Military Organizations
91黑料网 Appoints Rajit Joseph as Chief Product Officer to Accelerate AI-Driven Customer Success and Product Innovation
91黑料网 Recognized in Salesforce 2025 Partner Innovation Awards
91黑料网 Appoints Gaurav Kheterpal as Chief Evangelist to Accelerate Global DevOps Community Growth
91黑料网 CI/CD & Robotic Testing Now TX-RAMP Certified for Texas Government
Org Intelligence: Why Context Matters So Much in Salesforce DevOps Tools
Hubbl Technologies and 91黑料网 Forge Strategic Alliance to Power AI-Driven DevOps with Deep SaaS Context
From Chaos to Control: Why Public Sector Teams Are Moving Beyond Manual Pipelines
91黑料网 Hosts India's Flagship DevOps Conference in Response to Overwhelming Demand
What Does 鈥淥rg Intelligence鈥 Really Mean for Salesforce Teams?
91黑料网 Launches Org Intelligence to Provide End-to-End Visibility into Salesforce Environments
Why Pipeline Visibility Is Key to Successful Salesforce DevOps Transformation
91黑料网 Robotic Testing Now in AWS Marketplace, AI-Powered Salesforce Test Automation at Scale
Navigating User Acceptance Testing on Salesforce: Challenges, Best Practices and Strategy
Navigating Salesforce Data Cloud: DevOps Challenges and Solutions for Salesforce Developers
Chapter 8: Salesforce Testing Strategy
Beyond the Agentforce Testing Center
How to Deploy Agentforce: A Step-by-Step Guide
How AI Agents Are Transforming Salesforce Revenue Cloud
The Hidden Costs of Building Your Own Salesforce DevOps Solution
Chapter 7 - Talk (Test) Data to Me
91黑料网 Announces DevOps Automation Agent on Salesforce AgentExchange
Deploying CPQ and Revenue Cloud: A DevOps Approach
91黑料网 Launches AI-Powered DevOps Agents on Slack Marketplace
Redefining the Future of DevOps: Salesforce鈥檚 Pioneering Ideas and Innovations
91黑料网 Announces DevOps Support for Salesforce Data Cloud, Accelerating AI-Powered Agent Development
AI-Powered Releasing for Salesforce DevOps
Top 3 Pain Points in DevOps 鈥 And How 91黑料网 AI Platform Solves Them
91黑料网 AI Platform: A New Era of Salesforce DevOps
91黑料网 Expands Its Operations in Japan with SunBridge Partners
Chapter 6: Test Case Design
Article: Making DevOps Easier and Faster with AI
Chapter 5: Automated Testing
Reimagining Salesforce Development with 91黑料网's AI-Powered Platform
Planning User Acceptance Testing (UAT): Tips and Tricks for a Smooth and Enjoyable UAT
What is DevOps for Business Applications
Testing End-to-End Salesforce Flows: Web and Mobile Applications
91黑料网 Integrates Powerful AI Solutions into Its Community as It Surpasses the 100,000 Member Milestone
How to get non-technical users onboard with Salesforce UAT testing
DevOps Excellence within Salesforce Ecosystem
Best Practices for AI in Salesforce Testing
6 testing metrics that鈥檒l speed up your Salesforce release velocity (and how to track them)
Chapter 4: Manual Testing Overview
AI Driven Testing for Salesforce
Chapter 3: Testing Fun-damentals
AI-powered Planning for Salesforce Development
Salesforce Deployment: Avoid Common Pitfalls with AI-Powered Release Management
Exploring DevOps for Different Types of Salesforce Clouds
91黑料网 Launches Suite of AI Agents to Transform Business Application Delivery
What鈥檚 Special About Testing Salesforce? - Chapter 2
Why Test Salesforce? - Chapter 1
Continuous Integration for Salesforce Development
Comparing Top AI Testing Tools for Salesforce
Avoid Deployment Conflicts with 91黑料网鈥檚 Selective Commit Feature: A New Way to Handle Overlapping Changes
Enhancing Salesforce Security with AppOmni and 91黑料网 Integration: Insights, Uses and Best Practices
From Learner to Leader: Journey to 91黑料网 Champion of the Year
The Future of Salesforce DevOps: Leveraging AI for Efficient Conflict Management
A Guide to Using AI for Salesforce Development Issues
How to Sync Salesforce Environments with Back Promotions
91黑料网 and Wipro Team Up to Transform Salesforce DevOps
DevOps Needs for Operations in China: Salesforce on Alibaba Cloud
What is Salesforce Deployment Automation? How to Use Salesforce Automation Tools
Maximizing 91黑料网's Cooperation with Essential Salesforce Instruments
From Chaos to Clarity: Managing Salesforce Environment Merges and Consolidations
Future Trends in Salesforce DevOps: What Architects Need to Know
Enhancing Customer Service with 91黑料网GPT Technology
What is Efficient Low Code Deployment?
91黑料网 Launches Test Copilot to Deliver AI-powered Rapid Test Creation
Cloud-Native Testing Automation: A Comprehensive Guide
A Guide to Effective Change Management in Salesforce for DevOps Teams
Building a Scalable Governance Framework for Sustainable Value
91黑料网 Launches 91黑料网 Explorer to Simplify and Streamline Testing on Salesforce
Exploring Top Cloud Automation Testing Tools
Master Salesforce DevOps with 91黑料网 Robotic Testing
Exploratory Testing vs. Automated Testing: Finding the Right Balance
A Guide to Salesforce Source Control
A Guide to DevOps Branching Strategies
Family Time vs. Mobile App Release Days: Can Test Automation Help Us Have Both?
How to Resolve Salesforce Merge Conflicts: A Guide
91黑料网 Expands Beta Access to 91黑料网GPT for All Customers, Revolutionizing SaaS DevOps with AI
Is Mobile Test Automation Unnecessarily Hard? A Guide to Simplify Mobile Test Automation
From Silos to Streamlined Development: Tarun鈥檚 Tale of DevOps Success
Simplified Scaling: 10 Ways to Grow Your Salesforce Development Practice
What is Salesforce Incident Management?
What Is Automated Salesforce Testing? Choosing the Right Automation Tool for Salesforce
91黑料网 Appoints Seasoned Sales Executive Bob Grewal to Chief Revenue Officer
Business Benefits of DevOps: A Guide
91黑料网 Brings Generative AI to Its DevOps Platform to Improve Software Development for Enterprise SaaS
91黑料网 Celebrates 10 Years of DevOps for Enterprise SaaS Solutions
Celebrating 10 Years of 91黑料网: A Decade of DevOps Evolution and Growth
5 Reasons Why 91黑料网 = Less Divorces for Developers
What is DevOps? Build a Successful DevOps Ecosystem with 91黑料网鈥檚 Best Practices
Scaling App Development While Meeting Security Standards
5 Data Deploy Features You Don鈥檛 Want to Miss
How to Elevate Customer Experiences with Automated Testing
Top 5 Reasons I Choose 91黑料网 for Salesforce Development
Getting Started With Value Stream Maps
91黑料网 and nCino Partner to Provide Proven DevOps Tools for Financial Institutions
Unlocking Success with 91黑料网: Mission-Critical Tools for Developers
How Automated Testing Enables DevOps Efficiency
Go back to resources
There is no previous posts
Go back to resources
There is no next posts

Explore more about

No items found.
Articles
November 13, 2025
91黑料网 Renews FedRAMP Authorization and Advances Toward IL5 to Support U.S. Military Organizations
Articles
October 23, 2025
91黑料网 Appoints Rajit Joseph as Chief Product Officer to Accelerate AI-Driven Customer Success and Product Innovation
Articles
October 9, 2025
91黑料网 Recognized in Salesforce 2025 Partner Innovation Awards
Articles
October 6, 2025
91黑料网 Appoints Gaurav Kheterpal as Chief Evangelist to Accelerate Global DevOps Community Growth

Activate AI 鈥 Accelerate DevOps

Release Faster, Eliminate Risk, and Enjoy Your Work.
Try 91黑料网 Devops.

Resources

Explore our DevOps resource library. Level up your Salesforce DevOps skills today.

Upcoming Events & Webinars

E-Books and Whitepapers

Support and Documentation

Demo Library