|
What Makes a Good Unit Test? says that a test should test only one thing. What is the benefit from that?
Wouldn't it be better to write a bit bigger tests that test bigger block of code? Investigating a test failure is anyway hard and I don't see help...
Started by iny on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Is
@Test public void of taste in ....
I'm going to go out on a limb here, and say that the "only test one thing a single test can only contain a single assert statement.
My 2 cents.
Into smaller tests.
|
|
Given software where ...
The system consists of a few subsystems Each subsystem consists of a few components Each component is implemented using many classes ... I like to write automated tests of each subsystem or component.
I don't write a test for ...
Started by ChrisW on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
Additionally only implement find....
Are practicing pure test-driven development then you only implement any code after you have any failing test, and only implement test code when you have no failing tests.
|
|
In a functional test of my Rails app, I want to test where I am redirected to. The expected URL points to an external resource (that means it's not part of my application).
The URL looks like this: https://my.url.com/foo?bar1=xyz&bar2=123
Unfortunately...
Started by Daniel Pietzsch on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Just use a normal assert_match to compare a regular expression to @response.redirected_to :
post :myTwo quick thoughts on this:
1) If your functional test actually connects to the external application, why not just get the params out of....
|
Ask your Facebook Friends
|
This is my thread to try crap out...
DON'T POST
and don't steal... it's not nice and I will report you.
Started by AphroditeStrife on
, 15 posts
by 1 people.
Answer Snippets (Read the full thread at gaiaonline):
The battle took a great toll, causing Tifa to fight Cloud alone, the bartender being the only one capricious lady, something to get....
"I said I'd live my life for both of us.
Lockhart, and will only be romantically linked with her.
|
|
Here's what I will be using: T est E 250mg per ml, 1" 25 gauge to inject . For PCT , C lomid 50mg/40 tabs, N olvadex 20mg/30 tabs
Age: 33.5
Height 6'3"
Starting Weight: 185-187
Waist 31" ish
Bicep 15.5" cold
So after waiting about 6 weeks my order finally...
Started by Konnann on
, 30 posts
by 7 people.
Answer Snippets (Read the full thread at steroid):
Well good luck keep up the posts test....
Id say according to my logic test cannot work b4 5th pin period.
Feels like I've been doing a million leg raises with my right leg only..
!!! My right thigh hurts today.
|
|
Setup I'm packaging a WAR with a number of legacy jar dependencies in it (for the sake of keeping this simple, they can not possibly be altered or excluded from the deployed WAR).
Issue Including either or both of two of these jars will cause inexorable...
Started by Justin Searls on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That this worked fine for my needs, snippet below:
<plugin> <groupId>org.apache.maven.plugins< </artifactItems> </configuration> </plugin>
Break the test classes out of the jar file into a separate jar ....
|
|
I have a sublayer on a layer-backed view. The sublayer's contents are set to an Image Ref and is a 25x25 rect.
I perform a hit test on the super layer when the touchesBegan and touchesMoved methods are invoked. The hit test method does, in fact, return...
Started by Corey Floyd on
, 7 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
....
Any reasoning behind this problem is greatly appreciated.
First my view subclass and then my view controller.
Below I am posting some test code I used to recreate the problem.
That responds to touches is at (200, 220).
|
|
I found a question here about blogs on software development, but I would like to know which blogs on software testing this community reads.
If you just have to recommend more than one blog, post each one in separate answer, so others can vote on specific...
Started by Ċ½eljko Filipin on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
TestingReflections is nice because it aggregates a bunch of random test on testing philosophy, one....
Development
Voted up to keep the question out of the -ves
My blog , of course, is quite interesting - but will not be to everyone.
|
|
I've been running into some stability issues lately and I'm trying to isolate the problem. Does anyone know of any tools that let you pick and choose which cores specifically are utilized during a test?
The scenario I'd like to accomplish is essentially...
Started by darkewaffle on
, 14 posts
by 10 people.
Answer Snippets (Read the full thread at anandtech):
A test?
The scenario I'd like to accomplish is essentially "use core 1 only", "use core 3 only", "useYou might be able to get away with using something like Intel Burn Test, setting the number of threads to 1, and then setting....
|
|
I'm starting work with PHPUnit with Kohana. My application have many controllers which simply takes data from some form, validates and inserts/updates/deletes into/-/from database. How should I write a test cases for that.
I know that if I want to test...
Started by Lukasz Lysik on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
;-)
Still, forging the $_POST array is quite simple : it is not read-only, and you can store whatever in the database, this is not unit-test anymore : you are not testing one component in isolation to test :
you have....
|