SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: andreas-h <li...@hi...> - 2013年08月27日 16:23:06
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.
From: Phil E. <pel...@gm...> - 2013年08月28日 14:54:48
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 <li...@hi...> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /