arXiv:2610.12515cs.SEOct 2026

Manuscript Offprint

arXiv:2610.12515

CTML: A Comprehensive Framework for Continuous Testing in Machine Learning Operations

Bestoun S. Ahmed

Bestoun S. Ahmed

College of Engineering and Computing

American University of Bahrain (AUBH)

Riffa, Bahrain

bestoun.albeywanee@aubh.edu.bh

Abstract—The increasing use of machine learning (ML) systems in production has highlighted some important weaknesses in traditional software testing methods. Unlike regular software, ML systems can fail in specific ways due to their reliance on data, including issues like data drift, concept drift, and performance decline. To address these issues, this paper introduces the Continuous Testing for Machine Learning (CTML) framework. This framework is designed specifically for MLOps environments and offers a thorough, automated solution. It establishes a standardized way to evaluate ML systems across four main areas: data quality, drift detection, model quality, and pipeline validation. The CTML framework consists of a modular setup that includes a Test Registry, Test Runner, Result Store, and Integration Layer. This design ensures it integrates smoothly with existing Continuous Integration/Continuous Delivery (CI/CD) pipelines and MLOps platforms. We put this framework to the test in a predictive maintenance case study, which showed how effective it is at identifying issues like data drift, performance degradation, and bottlenecks in the pipeline—problems that traditional testing methods might overlook. The findings indicate that CTML successfully uncovers critical failures in the system across all testing dimensions, providing useful insights to help keep ML systems running smoothly in production. Overall, this work presents a new, integrated framework that connects academic research with industry best practices, pushing forward the standards in MLOps quality assurance.

Index Terms—Machine Learning Operations, Continuous Testing, Quality Assurance, Data Drift Detection, Model Validation, MLOps, CI/CD

I. INTRODUCTION

Machine learning (ML) has fundamentally changed how we tackle complex problems across various fields. As organizations increasingly depend on ML for important business decisions, it is becoming essential to address the operational challenges that come with deploying and maintaining these systems. This shift has led to the emergence of MLOps (Machine Learning Operations), which adapts DevOps principles to meet the specific needs of the machine learning lifecycle [1]. The unique features of ML systems create complexities that traditional software testing methods often can't handle. While conventional software relies on explicitly programmed logic, ML models learn and behave based on data through statistical methods. This data-driven approach introduces a distinct set of potential failure modes, making it necessary to implement specialized testing strategies.

The deployment and maintenance of ML systems come with challenges that set them apart from traditional software. Notable among these challenges are data drift and concept drift. Data drift refers to changes in the statistical properties of input data over time, while concept drift indicates that the relationships between input features and target variables can change [2]. These issues can lead to significant declines in model performance without any updates to the model code [3]. In contrast to traditional software bugs that typically appear immediately, failures due to drift often develop slowly and can remain unnoticed for long periods.

Additionally, the performance of ML models heavily depends on the quality of the data they are trained on. Challenges such as missing values, outliers, inconsistent formatting, and shifts in the distribution of training or inference data can seriously hinder accuracy. Unlike traditional software, which typically employs straightforward input validation, ML systems deal with high-dimensional and complex data, where issues related to quality can be subtle and hard to detect [4].

Moreover, ML systems consist of complex pipelines that involve various stages: data ingestion, preprocessing, feature engineering, model training, evaluation, and deployment. Each of these stages introduces potential points of failure, and the interactions among different components can result in unexpected issues that are difficult to anticipate. Standard integration testing often falls short when it comes to validating these intricate data flows and transformations.

Even though MLOps has made great progress in automating model training and deployment, testing is still a relatively underdeveloped part of the ML lifecycle. Most current practices focus on basic performance metrics—like accuracy, precision, and recall—evaluated against static test sets. However, this strategy is limited; static test sets do not reflect the evolving nature of production data. Models that perform adequately on historical data may show considerable decline in dynamic environments. Furthermore, standard metrics often provide an incomplete picture of model behavior, neglecting important aspects such as fairness, robustness, and generalization. Current testing efforts also tend to focus predominantly on the models themselves, overlooking the broader system context, including data pipelines, feature stores, and serving infrastructure.

To address the existing shortcomings in MLOps environments, we introduce the CTML (Continuous Testing for Machine Learning) framework as a comprehensive solution for continuous testing. This framework brings several important contributions to the table. Firstly, it establishes a structured testing methodology that spans four critical dimensions: data quality, drift detection, model quality, and pipeline validation. By doing so, it ensures thorough coverage of the entire ML system lifecycle. Additionally, the architecture of the framework is modular and extensible, allowing it to integrate seamlessly with established MLOps tools and CI/CD pipelines. This design allows organizations to adopt the framework incrementally, making it more accessible and adaptable. Moreover, the CTML framework implements automated continuous testing mechanisms that operate throughout the entire lifecycle of ML. This includes phases from development to production deployment and ongoing monitoring, ensuring that testing is maintained at all stages. The framework's effectiveness is further demonstrated through an empirical validation conducted via a detailed case study, which illustrates its ability to identify real-world issues across all defined testing dimensions. Lastly, the framework synthesizes insights from recent academic research and industry best practices, resulting in a solution that is both theoretically sound and practically applicable.

References (19)