Google test for integration tests?

4,869 views
Skip to first unread message

Brett Thomas

unread,
Dec 15, 2010, 11:49:23 AM12/15/10
to googletes...@googlegroups.com
Hi all,

Apologize for the really basic question here, I'm just getting started. I need to add tests to an existing code base, and exploring whether Google Test is a good choice. It looks great for unit tests, but what about testing program execution end to end? (Not sure if you prefer to call these integration tests/system tests/etc)

For example, our program has a "startproject" command, which creates and initializes 4 files. Without a testing framework, I'd just write a python script that executes a system call and validates a hash of each of the files. Do you all usually use Google Test for this, or do you maintain a separate integration test suite? If Google Test is the answer, could anybody point me to documentation of best practices for integration tests?

Thanks for the help, and sorry again for the noob question,
Brett

Steve Fox

unread,
Dec 15, 2010, 2:19:59 PM12/15/10
to Brett Thomas, googletes...@googlegroups.com
For any "black box" testing (system/acceptance) I'm not sure there's
any advantage to using a C++ based test system. Python would be much
quicker/easier. Once I'm actually testing objects (unit/integration)
then Google Test/Mock are very helpful.

Josh Kelley

unread,
Dec 15, 2010, 9:16:39 PM12/15/10
to Steve Fox, Brett Thomas, googletes...@googlegroups.com
I agree.

Note that Google Test itself uses Python for some of its end-to-end tests.

--
Josh Kelley
Reply all
Reply to author
Forward
0 new messages