473,585 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUnit redirecting output

Hi,
Where about to start using Unit Testing for dotNet.

I have experimented with the NUnit framework and have the following
question:
According to the documentation of NUnit , using the console it should be
possible to redirect the output to a file using the /out commandline switch,
like /out:filename.tx t

When i try this however the file is empty.

I have a method which writes something to the console.
When i test this method using nunit-console, then the output is written to
the console window, so I'm sure something gets written.
When i run the test in nunit-gui, then the output shows up in the console
output-tab.
But when i use the nunit-console with the /out option, then i see the output
no longer in the console window (as you expect when it gets redirected) but
it doesn't show up in the textfile neither.

Has anyone tried this and did it work.
What am i doing wrong?

Thanks for the answer,

Serge Desmedt
Jul 21 '05 #1
0 1795

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

Similar topics

0
2573
by: Christophe HELFER | last post by:
hi, I have some problem with redirecting input and output from a process. I can only use VB language (sorry...) Situation: I have to use the Cisco Network Registrar (DNS And DHCP server) command line utility as redirecting its input and output so I can interact with this one. This utility is similar to ftp under a win32 console. It...
0
353
by: serge desmedt | last post by:
Hi, Where about to start using Unit Testing for dotNet. I have experimented with the NUnit framework and have the following question: According to the documentation of NUnit , using the console it should be possible to redirect the output to a file using the /out commandline switch, like /out:filename.txt
2
1766
by: Sky Kim | last post by:
Hi, all. I've know NUnit for a while, now I try to use it. Most of application I develope is data base driven. I want to test data layer most with may input and checking the result, then compare with database if it returns right value or not. To do so, I need to save all inputs and results as development, debugging goes on.. But, NUnit...
0
1657
by: Ray Tayek | last post by:
hi, getting a: .\Stdafx.cpp : fatal error C1192: #using failed on 'i: nunit\samples\cpp-sample"' 'The filename, directory name, or volume label syntax is incorrect.' nunit is installed in i"\nunit. does anyone know what the problem here is? any pointers will be appreciated.
6
8343
by: Ray Tayek | last post by:
hi, i am preparing to teach a class in c++ and would like to intoduce some unit testing. i can make unit tests in c# using this dll and nant from the command line. i am using visual c++ 2005 express at home (the labs may have an earlier version). does anyone know how to tell visual studio to use this dll? thanks
2
2732
by: j | last post by:
I've used NUnit before, but I've never had this problem. I am trying to test a web service. I've written my tests, decorated the fixture, and the tests and everything compiles, but when I load the DLL into NUnit, none of the tests load. The console output : NUnit version 2.2.9 Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two,...
2
3167
by: chris | last post by:
I have created a file, called nunit_project_name.dll.config, within the bin folder of my Nunit project, but Nunit is not able to find the file. Is this is the right location? I can access the proper connection string if I put in in the machine.config file, but obviously this is not the best choice. I must be putting the file in the wrong...
0
916
by: mohammadhosny | last post by:
The solution of the NUNIT that uploaded on source forge I can't run it There is an one warrning only it is Warning 1 The parent file, 'Results.xsd', for file 'bin\Debug2005\Results.xsx' cannot be found in the project file. nunit.core.tests_VS2005 But in run or debug appeare an exception said A project with an output type of class...
0
1237
by: noway001 | last post by:
Hi, I need to learn how to do unit tests for certain functions. I have googled and come accross some stuff, but all the examples are easy. I read multiple articles on code project, but it didn't help. Usually, I see examples of unit testings functions that take in 1-2 parameters and perform addition/multiplication/etc. I need to know how to...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
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 we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.