Thanks, it works !
Other question : this nose framework let you do unit testing. are
there framework or futur dev about turbogears for fonctionnal testing ?
I mean, you should configure a "robot" or a "testbench" to test you
website with a sequence of test reflecting a validation process.
Example would be:
You have a user module on you website. You'de like to test how a user
will:
- subscribe, usubscribe, fill the correct field for subscription,
login; logout, check some permission agaisnt browsing some anonymous/
user/admin pages.
This can be descrive a a sequence of test, are there framework for
that Can I use nose for that ? Extensio to stress test may be a good
thing too...
I was thinking of this because to me validation/test is the only way
to have rapide development a success otherwise you can develop fast
but introduce too many bugs in older fonctionnalities, espacially
when using undirect calls like decorators or introspection that are
part of python.
Thanks
Benoit
Le 13 nov. 05 à 03:06, Kevin Dangoor a écrit :
Hi Benoit,
When you install nose, you can run nosetests to run the tests.
Additionally, if you look at the setup.py for TurboGears you'll see
this line:
test_suite = 'nose.collector',
Add that to your project's setup.py and you'll be able to run
python setup.py test
I've generally been running nosetests myself, but either way works.
Kevin
On 11/12/05, Benoit Masson <[EMAIL PROTECTED]> wrote:
Hi, I'm still on my way for my turbogears website. It comes up I
should now writte some tests, There are 2 sources of information:
1 - the doc from official website : turbotest version 0.2
2 - the google groupe : nose 0.6
Which one do I choose ? I'm on SVN for development so I though about
nose testing but i lack documentation about this ? Are there script
like python setup.py test ? or other ?
Thanks for you help
Benoit M
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com