Re: [Repoze-dev] How can I launch only one test with python setup.py test ?

2010-05-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

KLEIN Stéphane wrote:
 Hi,
 
 usually I use nose to execute my tests.
 
 In Chameleon project, I can't use nose, example of fail :
 
 (env1)$ nosetests src/chameleon/tests/test_doctests -vs
 Failure: OSError (No such file 
 /home/harobed/projets/repoze/chameleon/src/chameleon/src/chameleon/tests/test_doctests)
  ... ERROR
 
 ==
 ERROR: Failure: OSError (No such file 
 /home/harobed/projets/repoze/chameleon/src/chameleon/src/chameleon/tests/test_doctests)
 --
 Traceback (most recent call last):
   File 
 /home/harobed/projets/repoze/env1/lib/python2.6/site-packages/nose/failure.py,
  line 39, in runTest
 raise self.exc_class(self.exc_val)
 OSError: No such file 
 /home/harobed/projets/repoze/chameleon/src/chameleon/src/chameleon/tests/test_doctests
 
 --
 Ran 1 test in 0.001s
 
 FAILED (errors=1)
 
 
 Well, I can use ``python setup.py test`` to launch all tests.
 
 Question :
 
 * how can I launch only one test, example 
 ``chameleon/tests/test_doctests.py:CoreTests.test_parsing_module`` ?
 
 Thanks for your help,

Try running 'python setup.py --help' to see the options you can pass on
the command line.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvcXEsACgkQ+gerLs4ltQ6KqACgz2kdvY6gorlQsj+Z5/uDD5xp
/3kAn3oySYSMCfQcvE2Gh5pEnduPvhGI
=VEGe
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] How can I launch only one test with python setup.py test ?

2010-05-01 Thread Damien Baty
Hello Stéphane,

Le 01/05/10 18:45, KLEIN Stéphane a écrit :
 [...]
 * how can I launch only one test, example
 ``chameleon/tests/test_doctests.py:CoreTests.test_parsing_module`` ?


python setup.py test -s chameleon.tests.test_doctests

-- 
Damien Baty
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] How can I launch only one test with python setup.py test ?

2010-05-01 Thread KLEIN Stéphane
Le Sat, 01 May 2010 18:55:04 +0200, Damien Baty a écrit :

 Hello Stéphane,
 
 Le 01/05/10 18:45, KLEIN Stéphane a écrit :
 [...]
 * how can I launch only one test, example
 ``chameleon/tests/test_doctests.py:CoreTests.test_parsing_module`` ?
 
 
 python setup.py test -s chameleon.tests.test_doctests

Thanks, this command works :

python setup.py test -s 
chameleon.tests.test_doctests.CoreTests.test_parsing_module

Thanks.

Regards,
Stephane

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev