The Search For A Simple C++ Unit Tester : CUTE

For a full list of my adventures in search of a c++ unit tester, return to the main page here. This section will focus on one candidate: CUTE.

CUTE

Documentation: CUTE documentation
This documentation is quite thorough!! Bonus points =)

Installation

Downloaded standalone version. Done! =)

Run An Example

  1. Starting with simpletest.cpp, provided in cute/cute_examples
  2. Working with the existing directory structure, we need to change all the includes to "../cute_lib/file.h"
  3. Run g++ -o test simpletest.cpp , then run test

I see the following output:
CUTE Example Output

Assessment

Pros
  • Great documentation!
  • Can add messages to ASSERTs
  • Helper functions allowed within a test (although you would have to use messages to create a useful backtrace)
Cons
  • Requires lots of included files
  • Test running in main has a lot of “magic” that requires a real understanding of CUTE to interpret. Most people would probably just copy-paste.
  • Output is clunky. Failures are not immediately obvious

Rating: 6

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to The Search For A Simple C++ Unit Tester : CUTE

  1. Pingback: The Search For A Simple C++ Unit Tester | denvercoder9

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s