On 17 Jan 16:05, Sergi Almacellas Abellana wrote:
> El 17/01/14 16:02, Cédric Krier ha escrit:
> >On 17 Jan 15:54, Sergi Almacellas Abellana wrote:
> >>>El 17/01/14 15:33, Cédric Krier ha escrit:
> >>>> >On 17 Jan 15:24, Sergi Almacellas Abellana wrote:
> >>>>>> >>>El 17/01/14 15:11, Cédric Krier ha escrit:
> >>>>>>>> >>>> >On 17 Jan 14:10, Sergi Almacellas Abellana wrote:
> >>>>>>>>>>>> >>>>>> >>>El 14/01/14 19:07, Cédric Krier ha escrit:
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >On 14 Jan 16:02, Guillem Barba Domingo wrote:
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >My proposal:
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >     Usage: run-tests.py [options] [test] 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > [...]
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >     Options:
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       -h, --help            show this help 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > message and exit
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       -c CONFIG, --config=CONFIG
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >                             specify config 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > file
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       -m, --modules         Run also modules 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > tests
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       -v                    Increase 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > verbosity
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       --no-unittest         Don't run 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > unittest
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       --no-doctest          Don't run doctest
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >       --doctest=NAME        specify the name 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > of doctest to run
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> >                             (if not set all 
> >>>>>>>>>>>>>>>> >>>>>>>> >>>> > doctest ar run)
> >>>>>>>>>>>> >>>>>> >>>I miss include/exclude module_list (or regexp) to 
> >>>>>>>>>>>> >>>>>> >>>execute only the
> >>>>>>>>>>>> >>>>>> >>>test for a given module, because if i'm developing a 
> >>>>>>>>>>>> >>>>>> >>>new
> >>>>>>>>>>>> >>>>>> >>>functionality for the stock module i don't need to 
> >>>>>>>>>>>> >>>>>> >>>execute the
> >>>>>>>>>>>> >>>>>> >>>project* tests
> >>>>>>>> >>>> >It is there with the --doctest option.
> >>>>>> >>>So what if I need to run also unitest for a specific module?
> >>>> >If you don't put --no-unittest, unittest will be run.
> >>>And if module doesn't have doctests?
> >Any doctest will be run but I don't see the point of the question.
> I want to run all test for the stock module. So what option may I use?
> 
> run-test.py -m --doctest=scenario_stock.rst

run-test.py -m stock

> Same for all doctest from the stock module,

run-test.py -m stock --no-unittest

> and for all unittest for
> the stock module.

run-test.py -m stock --no-doctest


-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgptlW_0F9qe2.pgp
Description: PGP signature

Reply via email to