Hi,
I'm in the progress of packaging cartopy for Ubuntu. Some questions about
the test suite:
- I couldn't find any test runner script / method. It would be handy to have
a script "run_tests.py" which performs all unit tests, or a method
cartopy.run_tests(), or both. Otherwise, running the tests is a lot of
manual work (which means it's less likely to happen).
- the test_img_nest.py script fails on my machine (after installing the
package), because it tries to write to the directory in which cartopy is
installed. It would be better if filesystem write access would happen in
some tempdir (which could be automatically cleaned up after the test).
Thanks for making cartopy, this is awesome
Cheers, Andreas.
···
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/cartopy-test-suite-questions-tp41914.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
Thanks Andreas,
I couldn’t find any test runner script / method.
There is currently no “python setup.py tests” type runner (which would be welcomed), but the obvious test runner is to use “nose” - something like “nosetests cartopy” should do the trick. It’d also be very easy to put a function in the cartopy.tests module so that one may run the tests with “import cartopy.tests; cartopy.tests.run_all()” - if that’d encourage you to run the tests, I’d be supportive of adding it
the test_img_nest.py script fails on my machine
Hmmm, yes, it makes use of the hardcoded path based on file of cartopy. It’d be pretty quick to change this to use the cartopy.config[‘data_dir’] location, which should be writeable. Would you mind opening an issue or if you’re keen a PR?
Thanks for making cartopy, this is awesome
Cool. Glad you like it - there are still some issues to address, but in principle it is looking very promising IMHO.
Cheers,
Phil
···
On 27 August 2013 17:22, andreas-h <lists@…1159…> wrote:
Hi,
I’m in the progress of packaging cartopy for Ubuntu. Some questions about
the test suite:
- I couldn’t find any test runner script / method. It would be handy to have
a script “run_tests.py” which performs all unit tests, or a method
cartopy.run_tests(), or both. Otherwise, running the tests is a lot of
manual work (which means it’s less likely to happen).
- the test_img_nest.py script fails on my machine (after installing the
package), because it tries to write to the directory in which cartopy is
installed. It would be better if filesystem write access would happen in
some tempdir (which could be automatically cleaned up after the test).
Thanks for making cartopy, this is awesome
Cheers, Andreas.
–
View this message in context: http://matplotlib.1069221.n5.nabble.com/cartopy-test-suite-questions-tp41914.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
Learn the latest–Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel