Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Embedded C Test-Driven Development
Introduction
Welcome(Same as Promo) (1:25)
Foundations of Test-Driven Development in an Embedded Context
The 'Why' of Test-Driven Development(TDD) In Embedded Systems (1:59)
The TDD Solution: A Paradigm Shift in Quality (2:45)
The TDD Mantra: Red-Green-Refactor (1:32)
Setting Up
Downloading CubeIDE (2:34)
Installing CubeIDE (2:38)
Getting the required documentation (7:41)
Getting the required package for bare-metal development (21:19)
Testing the project setup (15:54)
Source Code Download
Developing some System Drivers for Implementing Real World Examples
Programming : Enabling the Floating Point Unit (FPU) (18:00)
Programming : Developing a UART Driver - Analyzing the Documentation (11:35)
Programming : Developing a UART Driver - Listing out the steps (4:00)
Programming : Developing a UART Driver - Implementing the Initialization function (22:13)
Programming : Developing a UART Driver - Implementing the Write function (5:39)
Programming : Developing a UART Driver - Testing the Driver (6:39)
Programming : Developing the System Timebase - Analyzing the Documentation (8:28)
Programming : Developing the System Timebase - Implementing the Init. function (9:52)
Programming : Developing the System Timebase - The rest of the functions (12:15)
Programming : Developing the System Timebase - Testing the Timebase (5:34)
Programming : Developing a BSP for the Dev Board - Required functions (7:55)
Programming : Developing a BSP for the Dev Board - The LED Driver (5:01)
Programming : Developing a BSP for the Dev Board - The Button Driver (4:00)
Programming : Developing a BSP for the Dev Board - Testing the BSP (3:35)
Programming : Developing an ADC Driver - Analyzing the Documentation (5:21)
Programming : Developing an ADC Driver - Listing out the steps. (5:27)
Programming : Developing an ADC Driver - The Initialization function (13:21)
Programming : Developing an ADC Driver - The Read function (14:05)
Anatomy of a TDD Project
The Anatomy of a TDD Project (2:54)
Testing Frameworks: Unity & CMock (1:34)
Configuring the TDD Tools
Programming: Setting Up Unity and a Host GCC Compiler (3:35)
Programming: Configuring a GCC Compiler on the Host Computer (3:26)
Programming: Configuring 'Make' for Automating the Build Process (2:54)
Developing Your First TDD Project
Programming: Implementing the TDD Folder Structure (5:13)
Programming: Writing Your First Unity Test (4:10)
Programming: Writing the Runner for Test (4:41)
Developing the Makefile for Host-Based TDD
Programming: Listing the Steps (3:09)
Programming: Assigning the Compiler and Flags (4:30)
Programming: Finding all Source Files in Relevant Directories (4:18)
Programming: Creating the List of Object Files (4:11)
Programming: Declaring the Executable Name and 'PHONY' Targets (2:53)
Programming: Writing the Rule to Link the Final Executable (3:42)
Programming: Writing the Rule to Compile C Files to Object Files (4:03)
Programming: Testing the TDD Project (4:57)
The TDD Cycle in Practice
Overview of the Complete TDD Cycle (4:21)
The 'FIRST' Principle of Good Unit Tests (1:52)
Test Naming Conventions and Structure (1:54)
Understanding the Essential Unity Assertions (1:11)
The Unity Framework
Overview of Unity Assertions for Embedded (1:54)
Boolean and Pointer Validation Assert Functions (3:04)
The Integer Equality Assertions (2:58)
Hexadecimal Equality and Bit-Level Assertions (2:50)
Assertions for Relational Comparisons (2:37)
Assertions for Range Checks (1:16)
Assertions for Pointers, Strings and Raw Memory (1:50)
Array Equality Assertions (1:19)
Assertions for Comparing Array Content to a Scalar Value (1:03)
The Floating-Point Assertions (2:44)
Flow Control Helpers Often Seen InTests (2:10)
Some Practical Tips (1:09)
Programming: Boolean and Pointer Validation Assertions (13:30)
Programming: Integer and Hex Equality Assertions (4:24)
Programming: Bitmask and Bit-Level Assertions (8:09)
Programming: Relational Comparison and Delta Checks (3:24)
Programming: Pointers, Strings and Memory Assertions (3:20)
Programming: Array Equality Assertions (3:51)
Programming: Array Content Scalar Comparison (4:06)
Programming: Floating-Point Assertions (2:02)
Programming: Flow Control Helpers (2:34)
Applying TDD in Bare-Metal Driver Development
Programming: Creating the Project (3:29)
Programming: Analyzing the Test List (6:08)
Programming: Compiling the Unit Test Cases (9:50)
Programming: Creating the Required Source and Test Files (3:08)
Programming: Implementing the 'fake_stm32f4xx' File for Host Testing (12:56)
Programming: Defining Some Helpers and Constants (4:42)
Programming: Implementing the Test File (5:15)
Programming: Implementing the Test Function and Test Runner (4:21)
Programming: Running Red-Green-Refactor (5:13)
Programming: Implementing the Test for PinMode (7:34)
Programming: Completing the Test for the Initialization Function (8:09)
Programming: Testing the Pin Control Functionality (8:03)
Programming: Making sure only Configured Pins are Changed (9:06)
Programming: Making sure the Initialization Function is Idempotent (3:32)
Migrating to the Target
Programming: Adding a Binder that Picks Fake vs CMSIS (5:37)
Programming: Making the Production Driver Single Sourced in Src (6:30)
Programming: Running the Driver on the Target (4:42)
Programming: Proving there is a Single Source for Host and Target (1:50)
Decoupling from Hardware: Mocking and Stubbing
Why Direct Hardware Interraction is Bad for Unit Tests (1:26)
The Solution: The "Test Double" (1:01)
A Taxonomy of Test Doubles (2:01)
Introduction to CMock (1:45)
The Three Acts of a Mock-Based Test (1:27)
Hexadecimal Equality and Bit-Level Assertions
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock