[vtk-developers] C++ unit tests

David Thompson david.thompson at kitware.com
Tue Jul 28 10:27:49 EDT 2015


Another project I work on has been using Bandit[1] to good effect.

	David

[1]:http://banditcpp.org/reference.html

On Jul 28, 2015, at 10:01 AM, David Cole via vtk-developers <vtk-developers at vtk.org> wrote:

> A single header file unit testing solution sounds like a good thing.
> 
> ... but ... seems like we could also take advantage of a
> well-established generally used unit testing framework (like gtest or
> CppUnit) just as easily, and not clutter the VTK source with
> yet-another-custom-thing-to-learn-about-VTKs-infrastructure.
> 
> Would it be just as easy to add unit testing using an external unit
> testing package? Or are there things about that scenario that are
> overly complicated that having our own makes simpler...?
> 
> 
> David C.
> 
> 
> 
> On Mon, Jul 27, 2015 at 5:25 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> Hi All,
>> 
>> I've always enjoyed using the python unit testing framework in "vtk.test".
>> It's been brought up on the list before, but it would be nice if VTK
>> included a unit test framework for C++, as well.
>> 
>> For my work projects, I've been using a unit test header that I wrote a year
>> and a half ago:
>> https://github.com/dgobbi/UnitTest/blob/master/UnitTest.h
>> 
>> It's a single header file that provides a collection of macros for building
>> unit tests, it's meant to be innocuous and easy to use.  It could go into
>> VTK as Testing/Core/vtkUnitTest.h and people could use it at their leisure.
>> 
>> Any thoughts?
>> 
>> - David
>> 
>> 
>> 
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtk-developers
>> 
>> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
> 



More information about the vtk-developers mailing list