Click here to Skip to main content
15,888,461 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Don't look now, but the future is here! Pin
BillWoodruff7-Sep-15 22:19
professionalBillWoodruff7-Sep-15 22:19 
GeneralRe: Don't look now, but the future is here! Pin
Eddy Vluggen8-Sep-15 4:13
professionalEddy Vluggen8-Sep-15 4:13 
GeneralRe: Don't look now, but the future is here! Pin
Marc Clifton8-Sep-15 13:14
mvaMarc Clifton8-Sep-15 13:14 
NewsIBM and Xerox predict brain-controlled apps will head to smartphones Pin
Kent Sharkey7-Sep-15 12:06
staffKent Sharkey7-Sep-15 12:06 
NewsIs your efficiency obsession a problem? Pin
Kent Sharkey7-Sep-15 8:40
staffKent Sharkey7-Sep-15 8:40 
GeneralRe: Is your efficiency obsession a problem? Pin
PIEBALDconsult7-Sep-15 17:12
mvePIEBALDconsult7-Sep-15 17:12 
News5 Questions every unit test must answer Pin
Kent Sharkey7-Sep-15 8:37
staffKent Sharkey7-Sep-15 8:37 
GeneralRe: 5 Questions every unit test must answer PinPopular
Marc Clifton7-Sep-15 9:50
mvaMarc Clifton7-Sep-15 9:50 

with absolutely no description whatsoever of the test’s purpose


I inherited a bunch of Ruby code where the only clue was the name of the test. D'Oh! | :doh: And to make matters more complicated, while there are 100's of unit tests, there are also 100's of integration tests, and when it fails, you basically get an "oops, something broke" error on the web page, or the test blows up because the next step (a button, a control, whatever) can't be found on the page.

And since the tests are written in a separate script language (cucumber, capybara, whatever, I can't remember the idiotic names the open source community likes to use and I don't want to) the stack trace (if you can call that abortion of class::method mess a stack) into the Ruby code is blown. I had to write a top-level exception handler to force a debug breakpoint that was monkey-patched (gawd, I hate Ruby) into the script runner (thank you SO for finding that gem, no pun intended.)

Oh, how I loathe Ruby. And pretty much any non-statically typed language.

Good article, it's rather quite surprising (or not, see my other rant below somewhere) that devs writing unit tests actually have to be taught these 5 basic questions. You shouldn't be writing unit tests (or code for that matter) if you don't know that already. Sigh | :sigh:

Marc

GeneralRe: 5 Questions every unit test must answer Pin
Sander Rossel7-Sep-15 12:17
professionalSander Rossel7-Sep-15 12:17 
GeneralRe: 5 Questions every unit test must answer Pin
den2k887-Sep-15 21:56
professionalden2k887-Sep-15 21:56 
GeneralRe: 5 Questions every unit test must answer Pin
Sander Rossel7-Sep-15 22:58
professionalSander Rossel7-Sep-15 22:58 
GeneralRe: 5 Questions every unit test must answer Pin
den2k887-Sep-15 23:09
professionalden2k887-Sep-15 23:09 
GeneralRe: 5 Questions every unit test must answer Pin
Kevin McFarlane8-Sep-15 0:53
Kevin McFarlane8-Sep-15 0:53 
GeneralRe: 5 Questions every unit test must answer Pin
thatraja7-Sep-15 9:51
professionalthatraja7-Sep-15 9:51 
GeneralRe: 5 Questions every unit test must answer Pin
Duncan Edwards Jones7-Sep-15 11:31
professionalDuncan Edwards Jones7-Sep-15 11:31 
NewsHow to download the last three versions of Windows officially at no cost Pin
Kent Sharkey7-Sep-15 8:35
staffKent Sharkey7-Sep-15 8:35 
GeneralRe: How to download the last three versions of Windows officially at no cost Pin
Rob Grainger7-Sep-15 22:31
Rob Grainger7-Sep-15 22:31 
NewsKill the password Pin
Kent Sharkey7-Sep-15 8:32
staffKent Sharkey7-Sep-15 8:32 
GeneralRe: Kill the password Pin
Marc Clifton7-Sep-15 10:03
mvaMarc Clifton7-Sep-15 10:03 
GeneralRe: Kill the password Pin
den2k887-Sep-15 11:08
professionalden2k887-Sep-15 11:08 
NewsKnow your language: C rules everything around me (part one) Pin
Kent Sharkey7-Sep-15 8:30
staffKent Sharkey7-Sep-15 8:30 
GeneralRe: Know your language: C rules everything around me (part one) Pin
den2k887-Sep-15 9:41
professionalden2k887-Sep-15 9:41 
GeneralRe: Know your language: C++ rules everything around me (part one) Pin
ed welch7-Sep-15 11:34
ed welch7-Sep-15 11:34 
GeneralRe: Know your language: C++ rules everything around me (part one) Pin
Rob Grainger7-Sep-15 22:38
Rob Grainger7-Sep-15 22:38 
NewsGoogle Chrome reportedly bypassing Adblock, forces users to watch full-length video ads Pin
Kent Sharkey7-Sep-15 8:21
staffKent Sharkey7-Sep-15 8:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.