473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Google C++ Testing Framework- I do not know what's the final step to get started.

kiseitai2
Hi, I know the title does not quite reflect my doubt, so let me expand on the subject. First, I downloaded Google test when I started looking around about this method of testing called unit tests. The suggestion came from Bafan, a person on the forum, after I engaged in the article "Debugging, a lost art?"(http://bytes.com/topic/software-deve...gging-lost-art) I read the documentation from Google and looked at two basic examples. Thus, I understand how to get statements set in a unit test format, but what I'm unsure is how do you run it (the samples from Google do not show any main function called from the source file where the tests are). In other words, do I simply compile the source code with the test statements, even if it doesn't contain a main function?


I'm using Code::Blocks with MinGW. I just want to be clear that I can just compile the file with the macros, for I didn't expect for the unit test to be a simple process to set up. Thanks. :)
Aug 3 '12 #1
0 1548

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Robb Shecter | last post by:
Anybody know about a Python library for testing websites? I'm thinking of something like a scriptable browser, where you could tell it to browse to a certain URL, check for the existence of...
0
by: Philip Nelson | last post by:
Folks, Just thought I'd drop a quick note to the newsgroup to let everyone know that I've initiated a new project on Sourceforge called db2unit. This is intended to provide a unit testing...
0
by: R. Rajesh Jeba Anbiah | last post by:
Anyone knows of any good testing framework or tools for PHP? I need a system that creates some random records depending upon the DB schema or so and then checks the output of the script. Testing...
2
by: Claudio Grondi | last post by:
Today I bumped by chance into explaining what algorithms do by using animation (Java applets): http://www-sr.informatik.uni-tuebingen.de/~buehler/BM/BM1.html Is there any tool in Python (except...
1
by: drnicwilliams | last post by:
Does anyone know of a framework similar to GoogleMaps/Yahoo Maps that allows you to use your own maps etc? Cheers Nic
3
by: Anja | last post by:
Hello everyone, I have a question about the Cxxtest framework which I am considering using for all my C++ unit testing needs. I am wondering if it is possible to configure the framework so...
1
by: Peter Michaux | last post by:
Hi, Is there a de facto standard C unit testing framework that is generally liked? Thank you, Peter
5
by: Zhanyong | last post by:
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...
0
by: Dilip | last post by:
Looks very interesting: http://code.google.com/p/googletest/
0
by: Bryan Berry | last post by:
I manage a team of 5 linux sysadmins and I am trying to transition us from lengthy, mostly unreadable shell scripts to python scripting. After a few tutorials, I have been infected with the unit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.