SeaTest

A simple C unit testing framework
Download

SeaTest Ranking & Summary

Advertisement

  • Rating:
  • Publisher Name:
  • Keith Nicholas
  • Operating Systems:
  • Windows All
  • File Size:
  • 10 KB

SeaTest Tags


SeaTest Description

SeaTest will provide users with a simple yet powerful unit testing framework for C based on the xUnit style of unit testing. Ideal for Test Driven Development ( TDD ). Designed to be portable. If you are new to TDD / Unit Testing, you may wish to jump straight to Getting Started. If you have experience with other xUnit type frameworks, you may wish to read through the general technical overview of SeaTest. In many xUnit style testing frameworks, tests and testfixtures are automatically discovered. So all you do is write your test, or fixture, and they are automatically run. Which is great! You never forget to include a test. However in C, there is no language mechanism to do this. So Seatest requires you to explicitly register all your tests and fixtures. If you are in the habit of "red green refactor", this limitation shouldn't be too much of a problem. The main reason for this is that the framework needs to be easily used in embedded environments / compilers / IDEs. The current prime target being PICs and the MPLAB IDE. So things are kept to pretty vanilla C code. SeaTest was built to support embedded development using a dual compiler approach. This approach involves developing the bulk of the code / tests in a Rich C development environment, like Visual Studio, and then cross compiling with the more limited embedded C compiler to check the unit tests also run on the target device. One of the big factors was to make sure seatest didn't use any dynamic memory allocation (like malloc, etc). Or store a big list of tests in some sturcture. All the test fixtures and tests are created through the structure of the code itself. Making it simple, quick, and very straightforward. Main features: xUnit style asserts Fixtures Setup / Teardown Global Setup / Teardown Ability to selectively run Tests / Fixtures Testing framework contained in one .h and one .c Easily extensible for custom asserts No memory allocation used! Simple Syntax with no CRUFT Cross platform


SeaTest Related Software