Connecting Tech Pros Worldwide Help | Site Map

announce: New Google C++ Testing Framework

  #1  
Old July 4th, 2008, 02:55 AM
Zhanyong
Guest
 
Posts: n/a
Hi,

We are glad to announce that today we have open-sourced Google C++
Testing Framework (http://code.google.com/p/googletest/), a library
that helps you write better C++ tests.

You can read more about the release at
http://googletesting.blogspot.com/20...c-testing.html.
Please send comments and questions to
googletestframework@googlegroups.com.

Looking forward to hearing from you!
--
Zhanyong Wan
Software Engineer
Google
  #2  
Old July 4th, 2008, 02:55 AM
phlip
Guest
 
Posts: n/a

re: announce: New Google C++ Testing Framework


Zhanyong wrote:
When they fail during debugging, does the debugger stop at a breakpoint on the
failing ASSERT_ or EXPECT_ line?
  #3  
Old July 4th, 2008, 03:25 AM
vladlosev@gmail.com
Guest
 
Posts: n/a

re: announce: New Google C++ Testing Framework


It has a command line option to do so.

On Jul 3, 6:49*pm, phlip <phlip2...@gmail.comwrote:
Quote:
Zhanyong wrote:>
When they fail during debugging, does the debugger stop at a breakpoint on the
failing ASSERT_ or EXPECT_ line?
  #4  
Old July 4th, 2008, 09:55 AM
anon
Guest
 
Posts: n/a

re: announce: New Google C++ Testing Framework


Zhanyong wrote:
Quote:
Hi,
>
We are glad to announce that today we have open-sourced Google C++
Testing Framework (http://code.google.com/p/googletest/), a library
that helps you write better C++ tests.
>
You can read more about the release at
http://googletesting.blogspot.com/20...c-testing.html.
Please send comments and questions to
googletestframework@googlegroups.com.
>
Looking forward to hearing from you!
Almost the same as http://cxxtest.sourceforge.net/guide.html except your
test framework is missing test macros for exceptions
  #5  
Old July 4th, 2008, 03:35 PM
phlip
Guest
 
Posts: n/a

re: announce: New Google C++ Testing Framework


anon wrote:
Quote:
Almost the same as http://cxxtest.sourceforge.net/guide.html except your
test framework is missing test macros for exceptions
How does it stack up to TestUnit++?

(Zhanyong might notice we are listing the most well-reviewed C++ unit testers
here...)

Zhanyong Wan wrote:
Quote:
Phlip wrote:
Quote:
Quote:
>Can the assertions do this?
Quote:
>
No - I'd love to have that, but am not sure how you can do it in C++,
which doesn't have reflection.
>
What we have is predicate assertions:
>
>
http://code.google.com/p/googletest/...ate_Assertions

Your page does not explain that. That is Key-Yoot if it does this:

ASSERT_PRED(operator<=, foo, bar);

That also permits a lot of reflection. Your page _does_ say that when such as
assertion fails, it prints out source text of foo and bar.

Next, can your rig do the Abstract Test Pattern? That's hard unless you make
registering test cases hard (like CppUnit does).

--
Phlip
  #6  
Old July 7th, 2008, 07:15 PM
Zhanyong
Guest
 
Posts: n/a

re: announce: New Google C++ Testing Framework


Hi, guys,

Please send you comments to googletestframework@googlegroups.com, as
that's where we track discussions on Google Test.

The Google Test FAQ (http://code.google.com/p/googletest/wiki/
GoogleTestFAQ) now explains why we built Google Test instead of using
an existing framework. You may find that useful.
Quote:
Quote:
What we have is predicate assertions:
>
>http://code.google.com/p/googletest/...ncedGuide#Pred...
>
Your page does not explain that. That is Key-Yoot if it does this:
>
ASSERT_PRED(operator<=, foo, bar);
>
That also permits a lot of reflection. Your page _does_ say that when such as
assertion fails, it prints out source text of foo and bar.
I just checked again. The wiki says that the assertion prints the
_values_ of foo and bar, and there are examples. :)
Quote:
Next, can your rig do the Abstract Test Pattern? That's hard unless you make
registering test cases hard (like CppUnit does).
It is being worked on - we have an experimental design but it's not
final yet.

If you have follow-up questions, please send to
googletestframework@googlegroups.com. Thanks!

--
Zhanyong
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dr. Dobb's Python-URL! - weekly Python news and links (Dec 21) Cameron Laird answers 0 December 22nd, 2005 03:05 PM
Dr. Dobb's Python-URL! - weekly Python news and links (Dec 21) Cameron Laird answers 0 December 21st, 2005 05:25 PM
Dr. Dobb's Python-URL! - weekly Python news and links (Jul 14) Irmen de Jong answers 0 July 18th, 2005 01:31 AM
Dr. Dobb's Python-URL! - weekly Python news and links (Jul 7) Irmen de Jong answers 0 July 18th, 2005 01:21 AM