|
Hi,
I'm trying to get into Unit testing for the obvious positives it introduces, and I'm trying to write a Unit test for a class I wrote the other day. (I know this is the opposite to TDD, please bear with me)
My class, Image , is used in conjunction ...
Started by Stephen Melrose on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So if one of your methods calls another method, you can simply add the annotation to the test's docblock and it will be added to your code coverage statistics....
You can use the covers annotation to specify if a test covers multiple methods.
|
|
I searched SO with
no tests are run MSTest
but could not find relevant answer.
Scenario:
I have a c# solution with the following structure:
mySolution myProject myProject.MSTests References Microsoft.VisualStudio.QualityTools.UnitTestFramework sutMSTests...
Started by gerryLowry on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
After VS created the unit test project, I added ....
Namespace SO_Answer { public class Class1 { public void Test() { var k = "Hello"; } } }
Saved the project and then went to 'File->Add->New Project' and chose 'Test Project'.
|
|
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 will test small units-test cycle (as opposed ....
Not only in terms of development time (where you can test a method in isolation much more easily will take longer than executing short methods thousands of times).
|
Ask your Facebook Friends
|
I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, this article by Ron Morrison and Grady Booch makes me think differently...
Started by Thomas Owens on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
The "if it could possibly break, test it" rule of thumb tests just check to....
If you're fixing a bug or adding a feature that has wider scope then your regression tests should have wider scope as well.
Or package in question.
|
|
Maybe this question has been asked although I didn't find the answer.
I am going to attend an interview for a test lead. can you tell me the pattern of questions I will have to face other than the normal question that I was facing previously like What...
Started by PJ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To test (an eBay clone maybe), then can you give an example of how you would plan to test the site:
Test Cases Security Testing User Interface (correct spelling, controls interacting with each other correctly, etc) If I was....
|
|
I've already checked this.. similar question but I am not convinced about the answers...
I currently have an interface that is only being implemented by one class, but that is going to change sooner or later. I currently have a test against the interface...
Started by bangoker on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What could a test for the IShape.Area property reliably assert? In general, therefore, you can realistically....
However, the deeper question is, would you want to? You don't say what your interface looks like, Square and RorschachBlot.
|
|
Hi,
This question is related to PHPUnit, although it should be a global xUnit design question.
I'm writing a Unit test case for a class Image .
One of the methods of this class is setBackgroundColor() .
There are 4 different behaviors I need to test for...
Started by Stephen Melrose on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It makes....
By the way, are you writing tests as you describe.
If you combine the tests, you'll be debugging a unit test failure.
When a unit test fails it must be immediately clear what exactly is broken.
Absolutely.
Split it.
|
|
Hi,
If a candidate says that his knowledge in C++ is 7/10 and you want to test his knowledge of references in C++, what question will you ask?
I thought of the following:
Write a function declaration that takes a pointer as reference with default values...
Started by ajay on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
A possible shibboleth to work out if it's a trick question....
I would rather ask him to generate a code to test an understanding of each issue, listed above...
Both the stated examples are good however they don't necessarily test C++.
|
|
Possible Duplicate:
How do you stress test a web application?
Currently I have configured a project with cc.net, watin and nunit and now I want to do stress, load, and performance testing of my .net projects. Any idea which opensource tool should I use...
Started by sam on
, 15 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
And last, but not least, there's Homer: Microsoft Web Application... .
Questions/340564/best-way-to-stress-test-a-website/340588#340588
We use Grinder to run load/stress Enterprise Edition you can use the Application Center Test tool as well.
|
|
I'm finally starting out with unit testing, having known that I should be doing it for a while, but I have a few questions:
Should or shouldn't I retest parent classes when testing the children if no methods have been overwritten? Conceptually, how do...
Started by VirtuosiMedia on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
From Wikipedia: "A unit is the smallest testable part of an application."
Test parent, test child; if the....
Not quite in the same order as your questions)
If the full test suite doesn't take too long, you parts of your code.
|