Unit testing in C
Luttinen, Tuomo (2024)
Luttinen, Tuomo
2024
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-202405079659
https://urn.fi/URN:NBN:fi:amk-202405079659
Tiivistelmä
The goal of this thesis was to gather a fair amount of knowledge on unit testing using the C programming language. The thesis also aimed to serve as a guide for someone with no knowledge of testing in general, as was the case for the author even after completing all other courses with passing grades. Unit testing in C is a significant aspect of testing, primarily conducted by the developer of the program. It is not always practiced by seasoned developers, as it can potentially double the required development time for a project. At the time of writing this thesis, there was no unambiguous and all-encompassing guide for someone lacking even basic knowledge of the subject. This identified a need for compiling data and knowledge to facilitate easier entry into testing.
Given the nature of this thesis, a method for conducting unit testing in C is presented, eliminating the need to search for alternative solutions. Additionally, the tools for conducting unit testing in C are evaluated. Selection of a framework, installation of the framework, and actual usage of the framework are discussed in as much depth as possible, providing a solid foundation even for testers who have never encountered unit testing before, enabling them to further develop their skills. The information was primarily gathered from the internet. The tools used are freely available and chosen for their suitability. The work and study were conducted for an international company that integrates a wide range of software and hardware knowledge.
Given the nature of this thesis, a method for conducting unit testing in C is presented, eliminating the need to search for alternative solutions. Additionally, the tools for conducting unit testing in C are evaluated. Selection of a framework, installation of the framework, and actual usage of the framework are discussed in as much depth as possible, providing a solid foundation even for testers who have never encountered unit testing before, enabling them to further develop their skills. The information was primarily gathered from the internet. The tools used are freely available and chosen for their suitability. The work and study were conducted for an international company that integrates a wide range of software and hardware knowledge.