cxxtest

CxxTest is a JUnit/CppUnit/xUnit-like framework for C++.

Its advantages over existing alternatives are that it:

Doesn't require RTTI

Doesn't require member template functions

Doesn't require exception handling

Doesn't require any external libraries (including memory management, file/console I/O, graphics libraries)

Is distributed entirely as a set of header files.

說明
This makes it extremely portable and usable.
In other words, CxxTest is designed to be as portable as possible. Its only requirements are a reasonably modern C++ compiler and either Perl or Python. However, when advanced features are supported in your environment, CxxTest can use them, e.g. catch unhandled exceptions and even display a GUI.
In addition, CxxTest is slightly easier to use than the C++ alternatives, since you don't need to "register" your tests. It also features some extras like a richer set of assertions and even support for a "to do" list
CxxTest is available under the GNU Lesser General Public License.

相關詞條

熱門詞條

聯絡我們