Re: Simple question

"Mike Chess" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <FC7DD4B0D06F7B43B837D62AC64786C4020A68E7@pa-exch2003>
I don't think that relying on the test framework to tell you that every
value is correct works in all cases.  The environment (US health care
EDI) that I work in is very dependent on the data that comes into the
application.  We code to the standards for our industry (HIPAA) and test
that our application complies with those standards.  But not every
entity that we work with does comply with the standards.  Most do ...
technically.  It is the areas that aren't spelled out clearly in the
standards that cause problems (certain free-form fields, for example).
When our customers tell us that the data we provide to them doesn't make
sense we have to return to the tests to figure out why.  Being able to
capture the values that are seen by the tests is important to figure out
how to update the tests so that the corner cases are handled
appropriately.  Getting the tests "right" is very much an iterative
process here.

 

 

Mike

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Butler,
Tony (London)
Sent: Wednesday, May 21, 2008 2:26 AM
To: NUnit
Subject: Re: [Nunit-users] Simple question

 

Hi,

 

Michael is of course, correct - you can write whatever you like in a
unit test - it is, after all, just regular .NET code.

I would have to ask though, if you don't test the values, how do you
know whether the code works or not?

Surely the point of tools like nunit is to allow you to automate your
testing and remove the need for manual eye-balling test results?

 

cheers

 

Tony

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Schnick,
Michael
Sent: 21 May 2008 10:15
To: Jerome Gransac; NUnit
Subject: Re: [Nunit-users] Simple question

	Hi Jerome,

	 

	I'm using Nunit to dispatch my tests, only.

	You can use whatever code you like within the unit tests, so a
simple WriteLine is no problem at all.

	 

	I'm gathering a lot of data in the tests and write them to
stdout as well as an own logging facility.

	Maybe this could help you, too.

	 

	In that case, you don't use assertions at all, or only use
assertions to compare the values to thresholds if you like to.

	 

	Best regards

	Michael

	 

________________________________

	From: [email protected]
[mailto:[email protected]] On Behalf Of Jerome
Gransac
	Sent: Mittwoch, 21. Mai 2008 11:00
	To: NUnit
	Subject: [Nunit-users] Simple question

	 

	Hi to all

	 

	I am a newbie and I have a simple question. 

	Maybe some of you will answer that it is not the purpose of Unit
testing, but here is my question:

	 

	Is it possible to with NUnit to display values (of results)
instead of assertions?

	 

	I mean, i don't want to test values (like
Assert.AreEqual(....)), i just need to display some values that i would
use as a test result

	 

	Any help would be appreciated
	
	 

	 

	-- 
	----------------------------------------
	Jerome GRANSAC - SUPPORT Live Music !!
	Mob: +33 (0) 662 771 822
	[email protected]  / www.jazzoscope.com
	
	"Le jazz, c'est l'expression de l'hysterie masculine" - Agnes
Jaoui
	"I am like a bird. You don't have to listen to me, but I am
there" - Sun Ra
	"Jazz isn't dead. It just smells funny" - FZ
	
	 

________________________________

This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically
indicated, this message is not an offer to sell or a solicitation of any
investment products or other financial product or service, an official
confirmation of any transaction, or an official statement of Merrill
Lynch. Subject to applicable law, Merrill Lynch may monitor, review and
retain e-communications (EC) traveling through its networks/systems. The
laws of the country of each sender/recipient may impact the handling of
EC, and EC may be archived, supervised and produced in countries other
than the country in which you are located. This message cannot be
guaranteed to be secure or error-free. This message is subject to terms
available at the following link:
http://www.ml.com/e-communications_terms/. By messaging with Merrill
Lynch you consent to the foregoing.

________________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.