Ilan Schnell | 21 Jul 04:41

Re: Overview of ETS 3.0 tests

Hi,
thanks for all the hard work Prabhu.  I can integrationtests/mayavi
with the run.py but when I use nosetests -s I get a wx error in one
of the later tests.  I'm not really sure if it's a good idea to
include the integrationtests in test_all.  Anyway, the reason
I started writing the test_all.py scripts was because of
a bug/feature in nose 0.10.3.  With that version it is not possible
to run nose in the root of a project (because I gets confused by with
the package namespaces), however it is possible to run nose 0.10.3 in
each directory by itself.  Also if one adds the line
  tests = enthought/tvtk/tests,enthought/mayavi/tests
to the nosetests section in setup.cfg things work (with 0.10.3),
whereas the shell command
  Mayavi_3.0.0a1$ nosetests enthought/tvtk/tests enthought/mayavi/tests
fails (which as fas as I understand does the same thing).

Regardless of the integrationtests, the other tests all work fine,
except that, enthought/tvtk/tests/test_tvtk.py only work with python
and nose 0.9.3, when I run it with nose 0.10.3 I get an AssertionError
in line 190 but I don't know what going on in detail.

- Ilan

Prabhu Ramachandran wrote:
> Prabhu Ramachandran wrote:
>   
>> Right now I am inclined to just make them play nicely with nosetests so 
>> you can run nosetests in the directory and it runs all the tests.  If 
>> people need to run it with certain command line options they may do so 
>> either as python [options] test_something.py or as nosetests [args] 
>> where the args may be re-interpreted by the test (for example -s will 
>> run the test standalone but is also nosetests option to not capture stdout).
>>     
>
> I've just checked in this.  So now, the tests should run with nosetests. 
>   You can do:
>
>
>   cd integrationtests/mayavi
>   nosetests
>
> and it should run everything.  Run:
>
>   nosetests -s
>
> to run them standalone.  It won't support offscreen (-so) since 
> nosetests doesn't have a -o option.
>
>
> cheers,
> prabhu
>
> _______________________________________________
> Enthought-dev mailing list
> Enthought-dev@...
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>
>   

Gmane