Skip to main content
15 events
when toggle format what by license comment
Oct 2, 2018 at 15:48 vote accept Amogh Talpallikar
Oct 2, 2018 at 15:48 vote accept Amogh Talpallikar
Oct 2, 2018 at 15:48
Aug 22, 2018 at 10:44 comment added gnat see also: Shouldn't unit tests use my own methods?
S May 24, 2018 at 7:51 history suggested Karol Selak CC BY-SA 4.0
formatting and grammar
May 23, 2018 at 11:32 review Reopen votes
May 28, 2018 at 3:04
May 23, 2018 at 10:50 review Suggested edits
S May 24, 2018 at 7:51
Apr 17, 2014 at 17:28 comment added Magus @BobDalgleish is correct. Additionally, testing forces you to think about the code which calls your function, and every way it could be done. To at least consider that is beneficial even if you write the code first.
Jan 28, 2014 at 21:25 history closed Doc Brown
gnat
CommunityBot
Dynamic
Duplicate of Do I need unit test if I already have integration test?, How to structure tests where one test is another test's setup?
Jan 24, 2014 at 14:01 answer added Telastyn timeline score: 16
Jan 24, 2014 at 13:48 answer added greuze timeline score: 4
Jan 24, 2014 at 13:36 comment added BobDalgleish It wasn't a mistake to write code first. However, if you start writing your code with testing in mind, you will make a different set of decisions. Often, I can't figure out how to test something until after I've written the code; being mindful of the testing requirements helps me to formulate testing strategies and, eventually, tests.
Jan 24, 2014 at 13:34 comment added tgkprog use mockito to give mock data from other data sources
Jan 24, 2014 at 13:11 review Close votes
Jan 28, 2014 at 21:25
Jan 24, 2014 at 13:08 comment added Amogh Talpallikar So basically my mistake was to write code first and then write test cases. If I would have written unit test befor the function. whenever I would be writing a bigger function I wouldn't be asking such questions.
Jan 24, 2014 at 12:48 history asked Amogh Talpallikar CC BY-SA 3.0