Overview
Unit testing is a software testing method for checking the validity of individual units of code. Using C, users can write unit tests for existing C code as well as C new code.
This instructor-led, live training (online or onsite) is aimed at software testers who wish to use C programming to create unit tests for C code.
By the end of this training, participants will be able to:
- Use unit testing frameworks in C to produce unit tests.
- Script custom C unit tests and add them to a call list.
- Simplify the process of debugging and refactoring code with test-driven development.
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- To request a customized training for this course, please contact us to arrange.
Requirements
- C programming experience
Audience
- Software Testers
Course Outline
Introduction
Test-Driven Development
- The different approaches to testing
Unit Testing Frameworks
- What are unit tests?
- The fundamentals of a unit testing framework
Preparing the Testing Environment
- Installing and configuring AceUnit and Unity
Writing a Unit Testing Framework
- Creating a test
- Applying more tests
- Refactoring the test runner
- Working with the assert class
- Reflecting to call methods
- Using a naming convention
Unity
- Creating unit tests
- Combining Unity with Ceedling
- Creating mock tests
AceUnit
- Running AceUnit in targeted environments
- Creating unit tests
- Using forks to trap signals
Post-Testing
- Debugging and refactoring C code
Summary and Conclusion