Re: Test code is worth the space
От
Jeff Janes
Тема
Re: Test code is worth the space
Дата
Msg-id
CAMkU=1zr3LJA07zO68QyYQoFJSS1syOiiFB24ksiiGawHsNX-Q@mail.gmail.com
Ответ на
Re: Test code is worth the space (David Fetter)
Список
Дерево обсуждения
Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Peter Geoghegan <pg@heroku.com>
Re: Test code is worth the space Greg Stark <stark@mit.edu>
Re: Test code is worth the space Simon Riggs <simon@2ndQuadrant.com>
Re: Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Greg Stark <stark@mit.edu>
Re: Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Greg Stark <stark@mit.edu>
Re: Test code is worth the space Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Greg Stark <stark@mit.edu>
Re: Test code is worth the space David Fetter <david@fetter.org>
Re: Test code is worth the space Greg Stark <stark@mit.edu>
Re: Test code is worth the space David Fetter <david@fetter.org>
Re: Test code is worth the space Jeff Janes <jeff.janes@gmail.com>
Re: Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Peter Geoghegan <pg@heroku.com>
Re: Test code is worth the space Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Test code is worth the space Robert Haas <robertmhaas@gmail.com>
Re: Test code is worth the space Stephen Frost <sfrost@snowman.net>
Re: Test code is worth the space Michael Paquier <michael.paquier@gmail.com>
Re: Test code is worth the space Stephen Frost <sfrost@snowman.net>
Re: Test code is worth the space David Steele <david@pgmasters.net>
Re: Test code is worth the space Robert Haas <robertmhaas@gmail.com>
Re: Test code is worth the space Stephen Frost <sfrost@snowman.net>
Re: Test code is worth the space David Steele <david@pgmasters.net>
Re: Test code is worth the space Andres Freund <andres@anarazel.de>
Re: Test code is worth the space David Steele <david@pgmasters.net>
Re: Test code is worth the space Tom Lane <tgl@sss.pgh.pa.us>
Re: Test code is worth the space Fabien COELHO <coelho@cri.ensmp.fr>
Re: Test code is worth the space Robert Haas <robertmhaas@gmail.com>
Re: Test code is worth the space Magnus Hagander <magnus@hagander.net>
Re: Test code is worth the space Peter Geoghegan <pg@heroku.com>
Re: Test code is worth the space Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Test code is worth the space Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Test code is worth the space Petr Jelinek <petr@2ndquadrant.com>
Re: Test code is worth the space Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Test code is worth the space Simon Riggs <simon@2ndQuadrant.com>
Re: Test code is worth the space Noah Misch <noah@leadboat.com>
Re: Test code is worth the space Simon Riggs <simon@2ndQuadrant.com>
Re: Test code is worth the space Robert Haas <robertmhaas@gmail.com>
Re: Test code is worth the space Simon Riggs <simon@2ndQuadrant.com>
On Tue, Aug 18, 2015 at 3:32 PM, David Fetter <david@fetter.org> wrote:
On Tue, Aug 18, 2015 at 04:54:07PM +0100, Greg Stark wrote:
> On Tue, Aug 18, 2015 at 2:16 PM, David Fetter <david@fetter.org> wrote:
> > I'm given to understand that this tight coupling is necessary for
> > performance. Are you saying that it could be unwound, or that
> > testing strategies mostly need to take it into account, or...?
>
> I'm just saying that we shouldn't expect to find a magic bullet test
> framework that solves all these problems. Without restructuring
> code, which I don't think is really feasible, we won't be able to
> have good unit test coverage for most existing code.
>
> It might be more practical to start using such a new tool for new
> code only. Then the new code could be structured in ways that allow
> the environment to be mocked more easily and the results observed
> more easily.
Great!
Do we have examples of such tools and code bases structured to
accommodate them that we'd like to use for reference, or at least for
inspiration?
+1 on that. It would be helpful to see successful examples. Especially ones written in C.
I can't really figure out what success looks like just from reading the descriptions.
Cheers,
Jeff
В списке pgsql-hackers по дате отправления