All About xUnit
embUnit
embUnit is a simple, free, portable testing framework for C.
In the mid-90s Kent Beck and Erich Gamma produced JUnit to
make it easy to write and run tests. Since then, similar frameworks have sprung up for almost
all languages. These are called xUnit frameworks, where x is the name of the language.You're about to learn about an exception to this statement: embUnit (shorthand for Embedded Unit).
This framework was created for embedded programming in C. It's simple and easily portable to just
about any C compiler.We're using a customized version included with our exercises, that you can adapt to use on your
own projects if you wish. All our Greatest Hits exercises use it.
In the pages ahead, you’ll learn enough about embUnit’s fundamentals to write
and execute hundreds of tests.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |