From holger at merlinux.eu Sat Feb 21 12:09:32 2009 From: holger at merlinux.eu (holger krekel) Date: Sat, 21 Feb 2009 12:09:32 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation Message-ID: <20090221110932.GN4576@trillke.net> Hi folks, some good news. as those glimpsing at pytest svn-commits know i am heavily working on a new plugin architecture. I am really happy about it as those also following me on my brand-new twitter account (hpk42) might guess. Around Pycon i am giving a tutorial about advanced testing topics including cross-platform distributed testing and writing plugins and i plan to talk in detil about the new and much improved ways of doing things. Here is the status: * Terminal reporting is now a nice self-contained plugin * there is a new "xfail" plugin, inspired by SimPy to mark test functions as "expected to fail" and report specially * a "poccoo" plugin for sending test failures to http://paste.pocoo.org * new plugins for managing setup/teardown of application state, using a turns-out-to-work-great new mechanism which i guess nosetests might imitate at some point :) Regarding the next release i consider doing the following: * open two google-code projects "pytest" and "pylib" with their svn repos remaining at codespeak (where many projects share one respository - i prefer that) * move current py/test/ to its own "pytest/" root project and depend on the py lib for install. * aim to do two alpha releases, pytest-1.0 alpha and py lib 1.0 alpha (containing the rest) What do you think? I am unfamiliar with commoditized code hosting and consider using google code. I'd probably like to also have an issue tracker for pytest. Any comments/recommendations? Would someone be up for co-admining such a project? Meanwhile i am finishing up the pytestplugins branch for merge to trunk, stay tuned :) cheers & have fun, hope to meet some of you at Pycon, holger -- collaborative expert contracting: http://merlinux.eu PyPy Python/Compiler tool chain: http://codespeak.net/pypy pylib py.test/greenlets/svn APIs: http://pylib.org From lac at openend.se Sat Feb 21 12:16:57 2009 From: lac at openend.se (Laura Creighton) Date: Sat, 21 Feb 2009 12:16:57 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation In-Reply-To: Message from holger krekel of "Sat, 21 Feb 2009 12:09:32 +0100." <20090221110932.GN4576@trillke.net> References: <20090221110932.GN4576@trillke.net> Message-ID: <200902211116.n1LBGv61023617@theraft.openend.se> request: can we get a debian package of py-test? Laura From holger at merlinux.eu Sat Feb 21 12:34:09 2009 From: holger at merlinux.eu (holger krekel) Date: Sat, 21 Feb 2009 12:34:09 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation In-Reply-To: <200902211116.n1LBGv61023617@theraft.openend.se> References: <20090221110932.GN4576@trillke.net> <200902211116.n1LBGv61023617@theraft.openend.se> Message-ID: <20090221113409.GP4576@trillke.net> On Sat, Feb 21, 2009 at 12:16 +0100, Laura Creighton wrote: > request: can we get a debian package of py-test? i haven't done the existing package management, "python-codespeak-lib" for some debian naming policy reasons. I guess it will be easier to have python-pytest" package in the future. holger From pedronis at openend.se Sat Feb 21 14:22:30 2009 From: pedronis at openend.se (Samuele Pedroni) Date: Sat, 21 Feb 2009 14:22:30 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation In-Reply-To: <20090221110932.GN4576@trillke.net> References: <20090221110932.GN4576@trillke.net> Message-ID: <49A00016.7080108@openend.se> holger krekel wrote: > Hi folks, > > some good news. as those glimpsing at pytest svn-commits know > i am heavily working on a new plugin architecture. I am > really happy about it as those also following me on my > brand-new twitter account (hpk42) might guess. > > Around Pycon i am giving a tutorial about advanced testing > topics including cross-platform distributed testing and > writing plugins and i plan to talk in detil about the new and > much improved ways of doing things. Here is the status: > > * Terminal reporting is now a nice self-contained plugin > * there is a new "xfail" plugin, inspired by SimPy to mark > test functions as "expected to fail" and report specially > * a "poccoo" plugin for sending test failures to http://paste.pocoo.org > * new plugins for managing setup/teardown of application state, > using a turns-out-to-work-great new mechanism > which i guess nosetests might imitate at some point :) > Will plugins be able to customize/interact with collection or is that something that can only be done in conftests? I haven't looked deeply at the branch yet. We are finally looking into open sourcing our (Open End) infrastructure that we briefly spoke about at last europython, to test javascript in browsers (more unit testing and integration testing than ui driving testing) through py.test and trying to cleanup some aspects of it; ways to control collection for special file extensions or for special base classes etc would be interesting. Samuele From holger at merlinux.eu Sat Feb 21 15:00:29 2009 From: holger at merlinux.eu (holger krekel) Date: Sat, 21 Feb 2009 15:00:29 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation In-Reply-To: <49A00016.7080108@openend.se> References: <20090221110932.GN4576@trillke.net> <49A00016.7080108@openend.se> Message-ID: <20090221140029.GS4576@trillke.net> On Sat, Feb 21, 2009 at 14:22 +0100, Samuele Pedroni wrote: > holger krekel wrote: >> Hi folks, >> >> some good news. as those glimpsing at pytest svn-commits know >> i am heavily working on a new plugin architecture. I am >> really happy about it as those also following me on my >> brand-new twitter account (hpk42) might guess. >> >> Around Pycon i am giving a tutorial about advanced testing >> topics including cross-platform distributed testing and writing plugins >> and i plan to talk in detil about the new and much improved ways of >> doing things. Here is the status: >> >> * Terminal reporting is now a nice self-contained plugin >> * there is a new "xfail" plugin, inspired by SimPy to mark test >> functions as "expected to fail" and report specially * a "poccoo" >> plugin for sending test failures to http://paste.pocoo.org >> * new plugins for managing setup/teardown of application state, using >> a turns-out-to-work-great new mechanism which i guess nosetests might >> imitate at some point :) > Will plugins be able to customize/interact with collection or is that > something that can only be done in conftests? I haven't looked deeply at > the branch yet. For starters, I prepared a plugin for collecting traditional unit tests: http://codespeak.net/svn/py/branch/pytestplugin/py/test/plugin/pytest_unittest.py notes on this: * all the current plugins organise their code in a single file including tests. * there currently is no defined hook for collecting files or directories but it should be easy to add > We are finally looking into open sourcing our (Open End) infrastructure > that we briefly spoke about at last europython, to test javascript in > browsers (more unit testing and integration testing than ui driving > testing) through py.test and trying to cleanup some aspects of it; ways > to control collection for special file extensions or for special base > classes etc would be interesting. great news. And a good case for using the plugin architecture. holger From lac at openend.se Sat Feb 21 15:21:28 2009 From: lac at openend.se (Laura Creighton) Date: Sat, 21 Feb 2009 15:21:28 +0100 Subject: [py-dev] pytest news: plugins, pycon, release-separation In-Reply-To: Message from holger krekel of "Sat, 21 Feb 2009 12:34:09 +0100." <20090221113409.GP4576@trillke.net> References: <20090221110932.GN4576@trillke.net> <200902211116.n1LBGv61023617@theraft.openend.se> <20090221113409.GP4576@trillke.net> Message-ID: <200902211421.n1LELSD3026817@theraft.openend.se> In a message of Sat, 21 Feb 2009 12:34:09 +0100, holger krekel writes: >On Sat, Feb 21, 2009 at 12:16 +0100, Laura Creighton wrote: >> request: can we get a debian package of py-test? > >i haven't done the existing package management, >"python-codespeak-lib" for some debian naming policy reasons. > >I guess it will be easier to have python-pytest" package >in the future. > >holger That was so obscure I didn't know it existed. Ooops. Thank you. Laura From lac at openend.se Sat Feb 21 20:10:53 2009 From: lac at openend.se (Laura Creighton) Date: Sat, 21 Feb 2009 20:10:53 +0100 Subject: [py-dev] [TIP] pytest news: plugins, pycon, release-separation In-Reply-To: Message from Nicolas Chauvat of "Sat, 21 Feb 2009 18:01:54 +0100." <20090221170154.GA5212@volans.logilab.fr> References: <20090221110932.GN4576@trillke.net> <200902211116.n1LBGv61023617@theraft.openend.se> <20090221170154.GA5212@volans.logilab.fr> Message-ID: <200902211910.n1LJArPH031405@theraft.openend.se> In a message of Sat, 21 Feb 2009 18:01:54 +0100, Nicolas Chauvat writes: >I thought codespeak's test harness was called py.test, did it change >its name recently ? > >-- >Nicolas Chauvat I just typed py-test instead of py.test. Laura From holger at merlinux.eu Sun Feb 22 17:32:29 2009 From: holger at merlinux.eu (holger krekel) Date: Sun, 22 Feb 2009 17:32:29 +0100 Subject: [py-dev] [TIP] pytest news: plugins, pycon, release-separation In-Reply-To: <20090221170154.GA5212@volans.logilab.fr> References: <20090221110932.GN4576@trillke.net> <200902211116.n1LBGv61023617@theraft.openend.se> <20090221170154.GA5212@volans.logilab.fr> Message-ID: <20090222163229.GT4576@trillke.net> On Sat, Feb 21, 2009 at 18:01 +0100, Nicolas Chauvat wrote: > Hi, > > On Sat, Feb 21, 2009 at 12:16:57PM +0100, Laura Creighton wrote: > > request: can we get a debian package of py-test? > > http://packages.debian.org/etch/all/python-logilab-common/filelist > http://packages.debian.org/lenny/all/python-logilab-common/filelist > > A /usr/bin/pytest executable has been in debian for a long time now > (as you can see it was already in etch). > > I thought codespeak's test harness was called py.test, did it change > its name recently ? not yet. "pytest" and "py.test" are often used as sysnonyms - and i wasn't aware of this naming conflict. holger From holger at merlinux.eu Sun Feb 22 17:40:32 2009 From: holger at merlinux.eu (holger krekel) Date: Sun, 22 Feb 2009 17:40:32 +0100 Subject: [py-dev] new way to organise test state / new blog Message-ID: <20090222164032.GU4576@trillke.net> Hi py-dev, testing-in-python and pypy-dev, i just created a blog where i intend to write about news regarding testing and python and metaprogramming. http://tetamap.blogspot.com/ and did a first posting about a new way of doing test state setup with py.test. Um, does anybody know how to do code coloring with blogspot? cheers, holger -- collaborative expert contracting: http://merlinux.eu PyPy Python/Compiler tool chain: http://codespeak.net/pypy pylib py.test/greenlets/svn APIs: http://pylib.org From holger at merlinux.eu Sun Feb 22 19:09:51 2009 From: holger at merlinux.eu (holger krekel) Date: Sun, 22 Feb 2009 19:09:51 +0100 Subject: [py-dev] [pypy-dev] new way to organise test state / new blog In-Reply-To: <20090222164032.GU4576@trillke.net> References: <20090222164032.GU4576@trillke.net> Message-ID: <20090222180951.GV4576@trillke.net> Hello again, thanks to all! I'll check out the suggested code coloring options. note that i decided to move to wordpress already, i.e. http://tetamap.wordpress.com/ because i like the interface possibilities there better. sorry for the noise. please send any more comments to me privately and not as a cross-post. best, holger On Sun, Feb 22, 2009 at 17:40 +0100, holger krekel wrote: > Hi py-dev, testing-in-python and pypy-dev, > > i just created a blog where i intend to write about news > regarding testing and python and metaprogramming. > > http://tetamap.blogspot.com/ > > and did a first posting about a new way of doing test state > setup with py.test. Um, does anybody know how to do code coloring > with blogspot? > > cheers, > > holger > > -- > collaborative expert contracting: http://merlinux.eu > PyPy Python/Compiler tool chain: http://codespeak.net/pypy > pylib py.test/greenlets/svn APIs: http://pylib.org > _______________________________________________ > pypy-dev at codespeak.net > http://codespeak.net/mailman/listinfo/pypy-dev > -- collaborative expert contracting: http://merlinux.eu PyPy Python/Compiler tool chain: http://codespeak.net/pypy pylib py.test/greenlets/svn APIs: http://pylib.org From holger at merlinux.eu Fri Feb 27 12:54:14 2009 From: holger at merlinux.eu (holger krekel) Date: Fri, 27 Feb 2009 12:54:14 +0100 Subject: [py-dev] plugins for pytest, there now Message-ID: <20090227115414.GE4576@trillke.net> Hi all, i just posted some news regarding pytest plugins on my blog: http://tetamap.wordpress.com/ and looking forward myself to write more plugins and to the the nose/pytest plugin meetup at Pycon. cheers, holger -- Metaprogramming, Python, Testing: http://tetamap.wordpress.com Python, PyPy, pytest contracting: http://merlinux.eu