Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Question to audience?
  2. How to write untestable code?
  3.  
  4. Test your code
  5. - Choose automation
  6. - Make it easy to test & modify
  7. - Not test - No agile
  8. - Agile is out of reach if you don’t focus on tests
  9. - Pay for testing
  10.  
  11. why we hate testing
  12. - understanding of req is not clear. so no edge cover
  13. - taking time more than implementation
  14. - Not used to it
  15. - having party in evening
  16. - Yes we all kids
  17.  
  18. Best practice on test
  19. - Don't test your implementation, Test your behaviour
  20. - Think you are testing one of public api
  21. - Provide appropritate name for your test with domain / natual language / descriptive
  22. - Diagnostics
  23. - assertTrue(a == 1); vs asertEquals(1,a);
  24. - asertEquals("Failed, Becoz we are not one",1,a);
  25.  
  26. TDD
  27. write test before your implementation
  28. dependency injection
  29. Better OO code
  30.  
  31. Red green refactor
  32.  
  33. Few important clean code principal
  34. - DRI
  35. - Magic number
  36. - Tell don't ask
  37. - Yagni
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement