I don't quite understand. Libs and dlls are also compiled. Unless you're
building a template-only library, it should work fine and without confusion.
Also, accessing private and protected members is entirely optional, and
UnitTest++ will continue to work perfectly with just public access.

-----Original Message-----
From: Vlad [mailto:v...@demoninsight.com] 
Sent: November-22-09 1:02 AM
To: UnitTest++ development and use
Subject: Re: [unittest-cpp-devel] Testing your privates


On Nov 21, 2009, at 9:21 PM, Clark Gaebel wrote:

> Interesting. I think I assume that tests are being run as a post-build to
> the main executable's compilation as that's the only way I've ever set it
> up. I don't think this is such a big deal because the main program will
fail
> to compile, stopping the tests from being run. Even if it doesn't stop
them
> though, you've still got compiler errors on the main project.
> 
> Or am I missing something?


Consider a use case of someone developing a library for others. In this
case, there is no "main executable" as such, but there should be a test
suite. [e.g unittest++:  it's only main() is its own test suite.]  In my
current project, I deal with templates a lot and it's typical to see errors
only when templates get instantiated (at the moment, mostly inside my
testcases as the users haven't fully caught on to the API)  -- I wouldn't
want that process to be subtly subverted with keyword redefinitions...
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
unittest-cpp-devel mailing list
unittest-cpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel
 

__________ Information from ESET Smart Security, version of virus signature
database 4627 (20091121) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
unittest-cpp-devel mailing list
unittest-cpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel

Reply via email to