Re: [Zope-dev] Running all unittests in $INSTANCE_HOME

2005-11-18 Thread Sidnei da Silva
On Fri, Nov 18, 2005 at 07:41:13AM +, Chris Withers wrote:
| Sidnei da Silva wrote:
| >
| >Unfortunately, './bin/zopectl test' doesn't run on Windows. But I will
| >give --dir a try.
| 
| I use the following in a batch script to run tests in exactly the same 
| way as zopectl test:
| 
| set ZOPE_HOME=C:\Zope\2.7.7
| set PYTHON=%ZOPE_HOME%\bin\python.exe
| set INSTANCE_HOME=C:\Zope\MyInstance
| cls
| %PYTHON% %_HOME%\bin\test.py --config-file %INSTANCE_HOME%\etc\zope.conf 
| --libdir=%INSTANCE_HOME%\Products --keepbytecode %1 %2 %3 %4 %5 %6
| 
| ...so I just type, for example:
| 
| 
| bin\runtests -vv MyProduct

Thanks for the hint!

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Running all unittests in $INSTANCE_HOME

2005-11-18 Thread Chris Withers

Sidnei da Silva wrote:


Unfortunately, './bin/zopectl test' doesn't run on Windows. But I will
give --dir a try.


I use the following in a batch script to run tests in exactly the same 
way as zopectl test:


set ZOPE_HOME=C:\Zope\2.7.7
set PYTHON=%ZOPE_HOME%\bin\python.exe
set INSTANCE_HOME=C:\Zope\MyInstance
cls
%PYTHON% %_HOME%\bin\test.py --config-file %INSTANCE_HOME%\etc\zope.conf 
--libdir=%INSTANCE_HOME%\Products --keepbytecode %1 %2 %3 %4 %5 %6


...so I just type, for example:


bin\runtests -vv MyProduct

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Running all unittests in $INSTANCE_HOME

2005-11-18 Thread Chris Withers

Paul Winkler wrote:

On Thu, Nov 17, 2005 at 02:33:10PM -0200, Sidnei da Silva wrote:


I might have asked this before, but can't seem to find it.

I'm looking for a way to run all tests in $INSTANCE_HOME using the
test.py script, but can't seem to get the majik combination of
parameters together. Would anyone hint me?


"./bin/zopectl test"  is supposed to do the job.
But in practice, so many third-party product tests either have
broken dependencies or pollute the test environment somehow
that something always breaks.


bin/zopectl test Products/MyProduct

...has worked fine for me for many months now...

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Running all unittests in $INSTANCE_HOME

2005-11-17 Thread Sidnei da Silva
On Thu, Nov 17, 2005 at 12:42:47PM -0500, Paul Winkler wrote:
| On Thu, Nov 17, 2005 at 02:33:10PM -0200, Sidnei da Silva wrote:
| > I might have asked this before, but can't seem to find it.
| > 
| > I'm looking for a way to run all tests in $INSTANCE_HOME using the
| > test.py script, but can't seem to get the majik combination of
| > parameters together. Would anyone hint me?
| 
| You mean your product unit tests?
| I've never been able to do this in practice.
| 
| "./bin/zopectl test"  is supposed to do the job.
| But in practice, so many third-party product tests either have
| broken dependencies or pollute the test environment somehow
| that something always breaks.
| 
| The --dir option helps, but unfortunately you can only give it
| once (or rather, only the last one given matters).

Unfortunately, './bin/zopectl test' doesn't run on Windows. But I will
give --dir a try.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Running all unittests in $INSTANCE_HOME

2005-11-17 Thread Paul Winkler
On Thu, Nov 17, 2005 at 02:33:10PM -0200, Sidnei da Silva wrote:
> I might have asked this before, but can't seem to find it.
> 
> I'm looking for a way to run all tests in $INSTANCE_HOME using the
> test.py script, but can't seem to get the majik combination of
> parameters together. Would anyone hint me?

You mean your product unit tests?
I've never been able to do this in practice.

"./bin/zopectl test"  is supposed to do the job.
But in practice, so many third-party product tests either have
broken dependencies or pollute the test environment somehow
that something always breaks.

The --dir option helps, but unfortunately you can only give it
once (or rather, only the last one given matters).


-- 

Paul Winkler
http://www.slinkp.com
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )