Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 10, 2022Get familiar with CeedlingHow to set up Ceedling From last post, Ceedling was introduced as a unit testing framework for C. In this post, I want to show how to set up Ceedling and how to use Ceedling with the simple example. Ceedling is required to install ruby. I download...Discuss·39 readsTDD - Embedded System using Cceedling
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 12, 2022Another mock example using StubWithCallbackAuto generated mock files in Ceedling provides Ignore and Expect functions as well as StubWithCallback function. Here is an example of StubWithCallback use case: external EEPROM can be accessed via specific SPI command such as read byte and write byt...Discuss·47 readsTDD - Embedded System using CC
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 10, 2022Unit Testing For Embedded C codeHow often firmware engineers expose to unit testing? This was an unusual topic to me at first while I have worked as firmware engineer for microcontrollers. Most of microctonroller applications are still developed in C or C++. In the past, while yo...Discuss·56 readsTDD - Embedded System using CC
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 14, 2022TDD ExampleBefore 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. ...Discuss·34 readsTDD - Embedded System using Ctest driven development
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 12, 2022Ceedling with Visual Studio CodeTest Driven Development is required to go through multiple times of small changes in production code and test code concurrently. It would be nice to have GUI IDE to load all files in one workspace. Also, you might want to debug test code during run-t...Discuss·59 readsTDD - Embedded System using Cceedling
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 12, 2022Another mock example using StubWithCallbackAuto generated mock files in Ceedling provides Ignore and Expect functions as well as StubWithCallback function. Here is an example of StubWithCallback use case: external EEPROM can be accessed via specific SPI command such as read byte and write byt...Discuss·47 readsTDD - Embedded System using CC
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 10, 2022How to deal with dependency issues among modulesIn general, firmware cannot be discussed without hardware dependency in embedded system. For example, led_controller module needs to use functions from interface_gpio module to control hardware. When we need to unit test this type of interface, the m...Discuss·34 readsTDD - Embedded System using Cceedling
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 10, 2022Get familiar with CeedlingHow to set up Ceedling From last post, Ceedling was introduced as a unit testing framework for C. In this post, I want to show how to set up Ceedling and how to use Ceedling with the simple example. Ceedling is required to install ruby. I download...Discuss·39 readsTDD - Embedded System using Cceedling
Hyunwoo Choiforhyunwoochoi.hashnode.net·Aug 10, 2022Unit Testing For Embedded C codeHow often firmware engineers expose to unit testing? This was an unusual topic to me at first while I have worked as firmware engineer for microcontrollers. Most of microctonroller applications are still developed in C or C++. In the past, while yo...Discuss·56 readsTDD - Embedded System using CC