473,497 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unit testing framework: CxxTest question

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 that
the output of all the tests go into a file rather than the standard
output. I did not see any flag that lets you do something like that
and searching the net did not yield any clues either.

So, I am wondering if anyone who has used the framework before can
help me with this.

Cheers,
Anja

Mar 12 '07 #1
3 2914
On 12 Mar, 13:12, "Anja" <anja.e...@googlemail.comwrote:
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 that
the output of all the tests go into a file rather than the standard
output. I did not see any flag that lets you do something like that
and searching the net did not yield any clues either.

So, I am wondering if anyone who has used the framework before can
help me with this.
You should really ask these kinds of questions in a forum concerned
with the Cxxtest framework, it's quite off topic in here. I don't know
how it all works but if it's a separate program you run then you can
always redirect the output. So if you normally run the test like so:
cxxtest
Then you can redirect the output to a file like so:
cxxtest out.txt
--
Erik Wikström

Mar 12 '07 #2
Anja wrote:
I have a question about the Cxxtest framework which I am considering
using for all my C++ unit testing needs.
Please use UnitTest++; it's much better.
I am wondering if it is possible to configure the framework so that
the output of all the tests go into a file rather than the standard
output. I did not see any flag that lets you do something like that
and searching the net did not yield any clues either.
The best way to use such a framework is with zero-tolerance for faults. When
you edit you should configure your editor to run all the tests from one
(unshifted) button, and you should run all the tests in your current module
after every few edits.

When you commit code to a repository, you should only commit if all tests
pass. If tests fail unexpectedly, you should revert your code until they
pass, and start your current effort again. This is much MUCH more productive
than traditional hack-n-slash debugging.

This is why few test runners have excessive (JUnit-style) support for
coddling errors, or listing them, or reporting them. At the very least your
editor should treat failures as syntax errors, and offer the option to
navigate to the failure easily.
So, I am wondering if anyone who has used the framework before can
help me with this.
Try its mailing list. I know UnitTest++ has the option.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Mar 13 '07 #3
On Mar 12, 8:12 pm, "Anja" <anja.e...@googlemail.comwrote:
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 that
the output of all the tests go into a file rather than the standard
output. I did not see any flag that lets you do something like that
and searching the net did not yield any clues either.

So, I am wondering if anyone who has used the framework before can
help me with this.

Cheers,
Anja
that's great

Mar 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3721
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
19
2417
by: newbiecpp | last post by:
I am looking for a C++ unit testing program. I googled and found there are quite a few there, such as CppTest, C++Test, and DejaGnu. Can someone give me a recommendation among these programs? I...
2
3203
by: Naveen Mukkelli | last post by:
Hi, I'm writing a client/server application using C#. The server accepts connecitons asynchronously, using BeginAccept/EndAccept. Is there any way we can write some unit tests(NUnit) to test...
16
2534
by: Greg Roberts | last post by:
Hi I want to place the tests needed in the code using attributes. There seems to be enough code snippets around for me to cover this. e.g. // Test cases, run these here on the function and...
5
11448
by: sylcheung | last post by:
Is it possible to use python to unit test C++ code? If yes, is there any example available? Thank you.
4
2139
by: Peter Rilling | last post by:
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system?
176
8184
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
5
1635
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...
2
1837
by: mo.sparrow | last post by:
Typemock Isolator – A powerful mocking framework for .NET unit testing and Test Driven Development (in Visual Studio). http://www.typemock.com/learn_about_typemock_isolator.html NUnit - A...
0
6991
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
7196
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...
1
6878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7373
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
5456
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,...
1
4897
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.