12 Sep '12, 5pm

asserting only 1 thing in your tests helps your thinking in your domain model more critically

I use multiple assertions per test, and here's why: 1. I'm asserting behavior, not individual lines of code. 2. I've found it rare that there are two different errors in one test (more likely is that one error causes multiple tests to fail). When there are two different errors in one test, I find the second one the next time I run the test. Since 99% of the time, the error(s) are related to some code I just wrote, when I fix that bug, generally I'm green. 3. The more tests, the longer they take to run, especially if database access is involved. The longer tests take to run, the more my TDD cycle is interrupted. 4. I haven't found naming tests to be either that onerous or even that important. For example, say I'm testing GET for a controller. Then that's the name of my test. I don't see the value of repeating the test's assertion in its name. 5. When code scrolls off the to...

Full article: http://blog.jayfields.com/2007/06/testing-one-assertion-p...

Tweets

Some big names make domain purchases

domainnamewire.com 12 Sep '12, 5pm

Some big names make domain purchases Wednesday, September 12th, 2012 Fortune 500 Yum! Brands among this week’s domain buye...

Testing PV Module Reliability

Testing PV Module Reliability

renewableenergyworld.com 11 Sep '12, 1pm

Many globally recognized testing laboratories currently employ qualification testing as a means to identify initial short-...

Prius Plug-in model has sold over 6,061 units #...

electricdrive.org 12 Sep '12, 2pm

Toyota Prius Plug-In model helping propel hybrid cause Wednesday, September 12, 2012 TORRANCE, CALIFORNIA, Sept. 11, 2012 ...

Domaining MBA Monday: Find A Repeatable Model F...

morganlinton.com 11 Sep '12, 4am

Hello and welcome to Domaining MBA Monday! Today I wanted to talk about an issue than many new investors skim past too qui...

In Cambodia, @ProjectAlba helps farmers increase income, protect against seed raiders

In Cambodia, @ProjectAlba helps farmers increas...

sgentrepreneurs.com 12 Sep '12, 2am

In Cambodia, Project Alba helps farmers increase income, protect against seed raiders September 12, 2012 by Wilson Chua Ph...

The #1 Thing I Look for and the ONE Question I ...

ricksblog.com 03 Sep '12, 11am

Labor Day!! Start your engines!! The #1 thing I look for is not always what I get but it certainly is my target. I have th...

Microsoft Says Bing Beats Google 2 to 1 in Blin...

seochat.com 10 Sep '12, 1pm

In a blind test between Google and Bing, which search engine would you prefer? Microsoft's latest marketing campaign is gi...

Prevent panic by Testing Your Factories First.

robots.thoughtbot.com 06 Sep '12, 2pm

September 6, 2012 Tagged: factories factory girl testing Comments (View) Testing Your Factories First Have you ever added ...

A Trusted Link? There Is No Such Thing

A Trusted Link? There Is No Such Thing

searchenginewatch.com 12 Sep '12, 1pm

What exactly does "trust" mean? Isn't it context specific? In the context of relationships, trust is earned via a number o...

Tesla Model S will get update for 'creep' mode, Service Center costs detailed

Tesla Model S will get update for 'creep' mode,...

green.autoblog.com 11 Sep '12, 8pm

, you've got to have the service to match. That's why Tesla Motors is rolling out what it calls a "transformed service exp...

Our years of magical thinking: interview with J...

energybulletin.net 09 Sep '12, 8pm

"Everybody's got a plan until they get punched in the mouth." -- Mike Tyson “That’s a pithy way of saying where our countr...

Testing your Ruby/Rails 3.x Model with Cucumber...

michelrvaillancourt.com 06 Sep '12, 1pm

So I’m working on a Ruby/Rails development project for a customer, and using TDD /BDD from word “Go”. The weapon of choice...

Bing Ads Testing Longer Headlines A La Google A...

searchengineland.com 10 Sep '12, 10pm

Bing Ads (the new moniker for Microsoft Advertising ) is testing an ad format that should be very familiar — they’re combi...

This surreally beautiful fruit is the world’s shiniest living thing:

This surreally beautiful fruit is the world’s s...

grist.org 10 Sep '12, 8pm

Pollia condensata looks like it’s wearing holographic nail polish, but it’s a real living fruit that grows that way — in f...