Previous Article in Journal
RoboDeploy: A Metamodel-Driven Framework for Automated Multi-Host Docker Deployment of ROS 2 Systems in IoRT Environments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

rUnit—A Framework for Test Analysis of C Programs

School of Innovation, Design and EngineeringMälardalen University, 721 23 Västerås, Sweden
Software 2026, 5(1), 2; https://doi.org/10.3390/software5010002
Submission received: 12 October 2025 / Revised: 15 December 2025 / Accepted: 31 December 2025 / Published: 2 January 2026

Abstract

Asserting program correctness is a longstanding challenge in software development that consumes lots of resources and manpower. It is often accomplished through software testing at various levels. One such level is unit testing, where the behaviour of individual components is tested. In this paper, we introduce the concept of test analysis, which instead of executing unit tests, analyses them to establish their outcome. This is line with previous approaches towards using formal methods for program verification; however, we introduce a middle layer called the test analysis framework, which allows for the introduction of new capabilities. We (briefly) formalize ordinary testing and test analysis to define the relation between the two. We introduce the notion of rich tests with a syntax and semantic instantiated for C. A prototype framework is implemented and extended to handle property-based stubbing and non-deterministic string variables. A few select examples are presented to demonstrate the capabilities of the framework.
Keywords: software testing; formal methods; formal verification; unit testing; model checking software testing; formal methods; formal verification; unit testing; model checking

Share and Cite

MDPI and ACS Style

Backeman, P. rUnit—A Framework for Test Analysis of C Programs. Software 2026, 5, 2. https://doi.org/10.3390/software5010002

AMA Style

Backeman P. rUnit—A Framework for Test Analysis of C Programs. Software. 2026; 5(1):2. https://doi.org/10.3390/software5010002

Chicago/Turabian Style

Backeman, Peter. 2026. "rUnit—A Framework for Test Analysis of C Programs" Software 5, no. 1: 2. https://doi.org/10.3390/software5010002

APA Style

Backeman, P. (2026). rUnit—A Framework for Test Analysis of C Programs. Software, 5(1), 2. https://doi.org/10.3390/software5010002

Article Metrics

Back to TopTop