2 recommendations for a novice

90 views
Skip to first unread message

Jean-Christophe Demers

unread,
Jul 2, 2015, 8:21:36 PM7/2/15
to catch...@googlegroups.com
Hi,

I begin to use Catch and would like recommendations to some issues that certainly will seem very simple.

First, I use MSVC 2013 and it work really nice. Thanks for this really nice tool.

Here my questions :
  1. I have created a static library and, to do unit testing, I have created an additional project that tests the library. Is this the best approach or do you have another recommendation?
  2. I wonder what is the best strategy to test template classes? Will create a file  (*.cpp)  having the same name as that of the class  (*.h)  is adequate? Or is it still a good solution to use external project for testing?
Many thanks to all,

Graham Shanks

unread,
Jul 25, 2015, 10:49:26 AM7/25/15
to CATCH, jean.christ...@gmail.com
1. That's what I do and is certainly a very common method. I like it because it separates the test code from the deliverable product.
2. Again I would include the test code in the additional project
Reply all
Reply to author
Forward
0 new messages