Re: [extremeprogramming] What has changed for you over the past 20 years?
"Slava Imeshev via Groups.Io" <[email protected]> Wed, 4 Dec 2019 14:15:00 -0800
| Newsgroups | gmane.comp.programming.extreme-programming |
|---|---|
| Message-ID | <[email protected]> |
Well, there are cases when writing tests for configurations files still may make sense. An example is typos. I’ve seen my share of bugs where a parameter name or a value were misspelled. Adding a test that reads the config and confirms that parameter is present allows CI to verify that the fix is there and also builds a regression suite that ensures that this doesn’t happen again. > On Dec 4, 2019, at 2:06 PM, Todd Sedano <[email protected]> wrote: > > > I prefer not writing unit tests for configuration. If configuration is wrong, then just fix it. I prefer writing unit tests for my control flow. This means that my code will never have 100% unit test coverage. > > As a concrete example, consider an object has a static/fixed hash. (Eg CA => California) or (12 => purchase order)...it’s either right or wrong, no need to write lots of low value tests > > On Wed, Dec 4, 2019 at 1:51 PM John Maxwell <[email protected] <mailto:[email protected]>> wrote: > On 12/04/2019 04:47:58 PM, Mike Bowler wrote: > > > Yep. TDD is a holly grail. Just having a policy not to check in any > > code without 100% unit test coverage does wonders to quality. > > > > I can’t tell if you meant that as sarcasm. I’ve seen that policy put > > in place and the “quality” that results. I expect many of us here have > > seen that disaster. > > > I haven't. What's the failure mechanism? > > -- > John Maxwell KB3VLL [email protected] <mailto:[email protected]> > > "Personally I'm fond of using Dedekind cuts for representing the Reals, > but it gets cumbersome to use when balancing one's checkbook." > -Charles Haynes > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#160396): https://groups.io/g/extremeprogramming/message/160396 Mute This Topic: https://groups.io/mt/39418691/2417047 Group Owner: [email protected] Unsubscribe: https://groups.io/g/extremeprogramming/leave/4902963/619838065/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-