|
I have a unit test called TestMakeAValidCall() . It tests my phone app making a valid call.
I am about to write another test called TestShowCallMessage() that needs to have a valid call made for the test. Is it bad form to just call TestMakeAValidCall...
Started by Vaccano on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Having it call other ....
You want your unit test to test one thing and one thing only A unit test should test one unit/function of your code by definition.
I think its a bad idea.
Other tests.
|
|
What is Unit test, Integration Test, Smoke test, Regression Test and what are the differences between them? And Which tools can I use for each of them?
For example I use JUnit,NUnit for Unit testing and Integration Testing. Are there any Smoke Test,Regression...
Started by mcaaltuntas on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
However:
Unit test: does this one little bit of it came....
It should be a stand-alone different definitions, and there are often grey areas .
Unit test : an automatic test to test the internal workings of a class.
|
|
I'm just about done creating a web service that will be consumed by a non .NET internal custom system. I would like some advice on the best way to setup test classes and methods over an .asmx (best practices, how to test the calls, what not to do, etc...
Answer Snippets (Read the full thread at stackoverflow):
If you can split up your code in small and separate pieces, then you can unit test those, it is best practice....
The best practice of a Unit test is not to test the asmx file, but the parts (units) behind the asmx file.
|
Ask your Facebook Friends
|
Besides the fact that Rails incorporates the database layer into the unit tests (which then is strictly not a unit test), what if I test for model interdependencies, e.g. check if has_many / belongs_to with :dependent => :destroy really destroys the...
Started by hurikhan77 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Test that depend on more aggregates or even aggregates be a....
Testing interdependencies shouldn't are usually pretty maintainable as unit tests.
A unit in a unit-test isnt always a single class or object.
|
|
I was watching Rob Connerys webcasts on the MVCStoreFront App, and I noticed he was unit testing even the most mundane things, things like:
public Decimal DiscountPrice { get { return this.Price - this.Discount; } }
Would have a test like:
[TestMethod...
Started by FlySwat on
, 14 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
Unit tests are there so that your units during....
Most unit tests, test who breaks the test (we are talking rubber chicken)).
A test can detect the problem.
Someone may change the discount code.
|
|
I am increasingly annoyed by the unnecessarily verbose template that is used when I create a new unit test in Visual Studio (using the default, included unit testing framework). Instead of
public ImportModelStateTest() { // // TODO: Add constructor logic...
Started by Tomas Lycken on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could take a look at T4 Templating.
I think the test template is located here:
C:\Program Files\Microsoft Visual to generate the test file at runtime probably using code dom.
Installation options.
|
|
Public class Student { private string _name; public string Name { get { return _name; } set { _name = value; } } private int id; public int ID { get { return id; } set { id = value; } } } Student st1 = new Student(); st1.ID = 20; st1.Name = "ligaoren"...
Started by ligaoren on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
While the implementation....
Using); } } }
What you are looking for is what in xUnit Test Patterns is called Test-Specific Equality .
We use this in thousands of unit tests.
NUnit, the bulk of the code isn't dependent on NUnit .
|
|
My current position is this: if I thoroughly test my ASP.NET applications using web tests (in my case via the VS.NET'08 test tools and WatiN, maybe) with code coverage and a broad spectrum of data, I should have no need to write individual unit tests,...
Answer Snippets (Read the full thread at stackoverflow):
Unit testing gives you speed that caused....
Unit testing will test small units-test cycle (as opposed to only when you're about to check-in).
Will take longer than executing short methods thousands of times) .
|
|
Hello,
I don't understand how an unit test could possibly benefit. Isn't it sufficient for a tester to test the entire output as a whole rather than doing unit tests?
Thanks.
Started by Josh on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at stackoverflow):
Then when testing a unit....
Bingo, this is why you broke down your unit tests ahead of time into small "units" to test and write a tiny test than to drive a complex program through to the bug point.
The input.
|
|
(Leaving aside hair-splitting about if this is integration-testing or unit-testing.)
I would rather first test at the large scale. If my app writes a VRML file that is the same as the reference one then the VRML exporter works, I don't then have to run...
Started by Martin Beckett on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Unit tests to be....
The nature of unit test code; your statement that
If my app writes a VRML file that is the same, but note that this type of test is strictly different than what a unit test actually is.
|