CMake is the game changer?
googletest in Windows with Visual Studio Code and Cmake

Search for a command to run...
Articles tagged with #unit-testing
googletest in Windows with Visual Studio Code and Cmake

If you are working in regulated industry, a unit testing is a part of the software development process because it usually requires to show V & V(Verification and Validation) in Figure-1. Figure-1 What is unit testing? The unit is defined in software...

This post is an extension of "TDD - You can write code without actual hardware (Part II)". Previously, eeprom_controller.c includes the read-byte function and write-byte function. Let's start to add a multiple write-byte test and a multiple read-byte...

This post is an extension of "TDD - You can write code without actual hardware (Part I)". Previously, eeprom_controller.c includes only the read-byte function. Let's start to add a write-byte test in test_eeprom_controller.c. After writing one byte i...

This post is an extension of "Another mock example using StubWithCallback". Previously, test_eeprom_controller.c includes only one test case. void test_mock_write_read_byte(void) { uint32_t test_address = 0; uint8_t write_data = 0xAA; fla...

Before starting TDD, we need software spec and test cases. Our goal is demonstrating software development process with a simple example:fizzbuzz problem. Here is software spec for fizzbuzz problem: if given number is divided up by 3, print fizz. ...
