08 Apr '13, 4am

An old post, but still relevant: The Mystery Guest and a bevy of testing knowledge from xUnit Test Patterns.

An old post, but still relevant: The Mystery Guest and a bevy of testing knowledge from xUnit Test Patterns.

July 28, 2009 dancroak anti-pattern testing Mystery Guest The xUnit Test Patterns: Refactoring Test Code book has an ASTOUNDING amount of testing knowledge. The patterns are also at xunitpatterns.com . Here’s an example. You’re having trouble understanding the behavior a test is verifying. This testing anti-pattern is called Obscure Test . A common cause of Obscure Test is the Mystery Guest . Mystery Guest The test reader is not able to see the cause and effect between fixture and verification logic because part of it is done outside the Test Method. The impact is: Tests don’t fulfill the role of Tests as Documentation . You may have Erratic Tests which result in tests that don’t pass during every test run or pass in the test environment but not in production. Identify the Mystery Guest In the test code of Rails applications, the Mystery Guest is usually one of four culpri...

Full article: http://robots.thoughtbot.com/post/159805321/mystery-guest

Tweets

Guest Post: Eco-Friendly Construction

Guest Post: Eco-Friendly Construction

greenbuildingelements.com 08 Apr '13, 7pm

One of the newest forms of energy consumption in building construction comes from straw. It’s been proven time and time ag...

Guest Post: You Can Make a Living Not Developing

fragerfactor.blogspot.com 08 Apr '13, 12am

From the private archives and "HTH" classic: Nobody (outside of a small handful of people) will ever get RICH (I mean priv...

Guest Post: The Country Is Over | Zero Hedge #2...

zerohedge.com 07 Apr '13, 10pm

Hey James_Cole. As a "James Cole" of long standing on other blogs, I use Jack Burton on ZH, so you are welcome to the "Jam...

Guest Post: Bitcoin: Money Of The Future Or Old...

zerohedge.com 09 Apr '13, 10pm

After the music-sharing service Napster went under, Niklas Zennström (the creator of Skype) stepped in with his creation c...

How to build an environmentally friendly "man cave." via @gbelements

How to build an environmentally friendly "man c...

greenbuildingelements.com 12 Apr '13, 1pm

If you are a first-time green remodeler, just take your time and do your research. It will be well worth it in the end. Cr...

#Masters @CallawayGolf confirms the Phrankenwoo...

golfweek.com 09 Apr '13, 2pm

AUGUSTA, Ga. -- Two weeks ago at the Shell Houston Open, Phil Mickelson talked about a “special club” for the Masters. Man...

The Top 5 Benefits of Guest Blogging

The Top 5 Benefits of Guest Blogging

searchenginejournal.com 16 Apr '13, 2pm

Positive association with brand names definitely drives credibility for individual authors and the companies for which the...

Guest Post By Bill Sweetman “Why I Support The ...

thedomains.com 06 Apr '13, 1pm

This is a guest Post by Bill Sweetman who is General Manager of YummyNames, a service from Tucows.com, a top 5 domain name...

Guest Post By Bill Sweetman "Why I Support The ...

thedomains.com 06 Apr '13, 1pm

This is a guest Post by Bill Sweetman who is General Manager of YummyNames, a service from Tucows.com, a top 5 domain name...