Re: Suggestion, advice on TDD adoption
"Al Chou [email protected] [testdrivendevelopment]" <[email protected]> Wed, 6 Apr 2016 20:06:49 +0000 (UTC)
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
TDD with existing non-TDD'ed code often is actually WELC (Working Effectively with Legacy Code, see the book of that title by Michael Feathers), which is orders of magnitude more difficult. I advise you to start TDD with net-new code. It could be new methods within existing classes, if you don't have any truly greenfield areas of code to work on.
Al
On Wednesday, April 6, 2016 4:53 AM, "[email protected] [testdrivendevelopment]" <[email protected]> wrote:
<!--#yiv4040117874 #yiv4040117874 .yiv4040117874ygrp-photo-title{clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;}#yiv4040117874 div.yiv4040117874ygrp-photo{background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}#yiv4040117874 div.yiv4040117874photo-title a, #yiv4040117874 div.yiv4040117874photo-title a:active, #yiv4040117874 div.yiv4040117874photo-title a:hover, #yiv4040117874 div.yiv4040117874photo-title a:visited {text-decoration:none;}#yiv4040117874 div.yiv4040117874attach-table div.yiv4040117874attach-row {clear:both;}#yiv4040117874 div.yiv4040117874attach-table div.yiv4040117874attach-row div {float:left;}#yiv4040117874 p {clear:both;padding:15px 0 3px 0;overflow:hidden;}#yiv4040117874 div.yiv4040117874ygrp-file {width:30px;}#yiv4040117874 div.yiv4040117874attach-table div.yiv4040117874attach-row div div a {text-decoration:none;}#yiv4040117874 div.yiv4040117874attach-table div.yiv4040117874attach-row div div span {font-weight:normal;}#yiv4040117874 div.yiv4040117874ygrp-file-title {font-weight:bold;}#yiv4040117874 --> <!--#yiv4040117874 #yiv4040117874ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv4040117874 #yiv4040117874ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv4040117874 #yiv4040117874ygrp-mkp #yiv4040117874hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv4040117874 #yiv4040117874ygrp-mkp #yiv4040117874ads {margin-bottom:10px;}#yiv4040117874 #yiv4040117874ygrp-mkp .yiv4040117874ad {padding:0 0;}#yiv4040117874 #yiv4040117874ygrp-mkp .yiv4040117874ad p {margin:0;}#yiv4040117874 #yiv4040117874ygrp-mkp .yiv4040117874ad a {color:#0000ff;text-decoration:none;}-->
HI,We have recently started using TDD. We have gone through the training, learned some of the TDD good practices/challenges, using junit, mockito tools/framework etc. Since its an early start to the journey, I would be glad to hear some practical advice from folks here, some of the DOs and Dont's, tips and tricks etc. We are going to have a bumpy ride, especially with exisitng code, so it will really help if we can hear from experinced people.
Thanks,pooja