UnitTest

UnitTest

UnitTest

The C/C++ Source Code Unit Test Framework!

UnitTest is a test framework designed for unit testing C/C++ code on the Microsoft Windows platform. UnitTest has a tiny footprint, the code is very clean. It's written in C++ and can be downloaded freely. The Author Rajinder Yadav, clearly states.

"You are free to use, share and make modification to the source code as long as you mention the original source ( [http://devmentor.org devmentor.org] ) and the author."

Rajinder does a good job of describing the UnitTest Framework architecture with notes and a UML diagram. He also provides good documentation that will get you up and running in a few minutes!

Getting Started Unit Testing

Read the "UnitTest Guide" to get started, it is a quick introduction on how to code a Unit Test class, but the doc starts off by saying how to avoid this process by using the "utgen.exe" tools to generate the Unit Test class on the fly!

The UnitTest Framework comes with three unit test "observers":

*Console Logger
*Stream Logger
*UnitTestMonitor (MFC GUI Window Logger)

UTGen

The UnitTest framework comes with a neat little command line utility that you will love to use. It helps to quickly generate the Unit Test class source and header files with the test case methods that are provided through the argument.No more having to cut and paste from a template source file.

A typical session might look like this:

utgen.exe -n MyUnitTest -t Load Save Connect Open

Here are the following switches that are available /s /n /o /a /c /t ...

The "subject" class is the name of the class you want unit test.

See also

*Test automation
*Unit testing

References

External links

* [http://devmentor.org#UnitTest The UnitTest Framework]
* [http://devmentor.org devmentor.org]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Unittest — Dieser Artikel wurde aufgrund von inhaltlichen Mängeln auf der Qualitätssicherungsseite der Redaktion Informatik eingetragen. Dies geschieht, um die Qualität der Artikel aus dem Themengebiet Informatik auf ein akzeptables Niveau zu bringen. Hilf… …   Deutsch Wikipedia

  • Liste von Modultest-Software — Inhaltsverzeichnis 1 ABAP 2 C 3 C++ 4 Cobol 5 Delphi …   Deutsch Wikipedia

  • PyUnit — Infobox Software name = PyUnit caption = developer = latest release version = 1.4.1 latest release date = release date|2001|08|09 operating system = programming language = Python genre = Test Tool license = Python License website =… …   Wikipedia

  • Doctest — is a module included in the Python programming language s standard library that allows the easy generation of tests based on output from the standard Python interpreter shell, cut and pasted into docstrings.Implementation specificsdoctest makes… …   Wikipedia

  • doctest — is a module included in the Python programming language s standard library that allows the easy generation of tests based on output from the standard Python interpreter shell, cut and pasted into docstrings. Contents 1 Implementation specifics 2… …   Wikipedia

  • AsUnit — There are two different unit test frameworks that share a similar name. AsUnit is a unit test framework for ActionScript development. It is the only open source ActionScript unit test framework that supports Flash Players 6, 7, 8, 9, 10 and Flash …   Wikipedia

  • Nose (disambiguation) — Nose may refer to: Contents 1 Biology 2 The arts 2.1 Literature 2.2 Opera 3 Geography …   Wikipedia

  • Comparison of web application frameworks — This is a comparison of notable web application frameworks. Contents 1 General 1.1 Perl 1.2 PHP 1.3 Java 1.4 Python …   Wikipedia

  • Codelite — Infobox Software name = CodeLite caption = developer = Eran Ifrah programming language = C++ latest release version = v1.0 latest release date = release date and age|2008|7|1 latest preview version =… …   Wikipedia

  • Mock-up — des Innenraumes eines Airbus A 380 Der aus dem Englischen stammende Begriff Mock up (in der Schweiz auch Maquette) bezeichnet im Deutschen beispielsweise eine Attrappe. Er wird heute aber meist für ein maßstäblich gefertigtes Modell bzw. eine… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”