Automatic coverage testing of mapserv?

Frank Warmerdam fwarmerdam at GMAIL.COM
Sat Feb 5 23:07:02 EST 2005


On Sat, 5 Feb 2005 23:20:31 +0100, Petter Reinholdtsen <pere at hungry.com> wrote:
> [Frank Warmerdam]
> > In addition to Sean's mapscript based unit test,
>
> Where is this?  Are you talking about the stuff in mapserver/tests/?

Petter,

Sean already mentioned where his unit tests are.
I am not honestly sure what the mapserver/tests directory
is for.


> This look like a very good starting point.  I'm investigating it now.
> One thing that surprised me was the fact that you seem to be using a
> home made test suite system instead of using the official one included
> in python.  Why is this?  Unless you have a very good reason, I
> suggest we rewrite it to use the unittest python module,
> <URL:http://docs.python.org/lib/module-unittest.html>.  This will give
> us the system to run all tests at once and give a summary at the end
> of all these tests.

I am not interested in changing it without a fairly compelling
reason.  Hopefully we will have a chance to meet and share
a few beers at MUM3, and I can do my full "grumpy old man"
routine where I berate you for wanting to change everything.
Sort of like I did with Sean last year.

I believe that Sean has used the python unittest stuff.

> > Rather than starting yet another completely different test methology
> > I would encourage you to look at adding into msauotest.  I'm sure a
> > "mapserv QUERY_STRING=... " style test would fit into it quite
> > naturally, and I would be willing to cooperate on it.
>
> Yes, this look like a better starting point that the mapserver/tests/
> scripts, and I will start here.  I'll start by trying to understand
> the current tests, and see how much code coverage they provide.
>
> This patch will make it easier to enable coverage testing using a new
> --enable-coverage configure flag.

I don't know if someone else is picking up on all your patches, but
I'm not applying them.  I will apply any that seem sensible to me if
they are submitted properly through bugzilla and end up assigned
to me.  That is our methodology.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list