or... on lack of thereof...
It seems to me geoserver lacks unit testing quite a bit, and has an architecture that
does not help in setting up unit tests (that is, that allows to mock up things around
the class you want to test).
So far I've seen cite and the the test module, and both are integration tests.
As a side node, a few tests in the test module do require a running geoserver
with a configuration that has the "popupation" style, configuration that I don't
see anywhere.
Moreover, the wms getMap tests just check an image has been generated
somehow, and not that the proper styling has been applied.
I've discovered all of this trying to find a place where to test my new wms getMap
filter support... I'm committing it anyways, but feeling uneasy knowing it's not tested
anywhere...
Cheers
Andrea
Testing has been one of the hardest things I have found, but the http unit tests seem to help a fair amount. But they test more of the whole workflow and not just a single unit of code, so they can't really pinpoint the problem.
The configuration that is used is the userbasic data_dir configuration, with states and the population style. Of course this style has changed since the tests were made.
Maybe we need to deploy with a test configuration?
Brent Owens
(The Open Planning Project)
aaime@anonymised.com wrote:
or... on lack of thereof...
It seems to me geoserver lacks unit testing quite a bit, and has an architecture that
does not help in setting up unit tests (that is, that allows to mock up things around
the class you want to test).
So far I've seen cite and the the test module, and both are integration tests.
As a side node, a few tests in the test module do require a running geoserver
with a configuration that has the "popupation" style, configuration that I don't
see anywhere.
Moreover, the wms getMap tests just check an image has been generated
somehow, and not that the proper styling has been applied.
I've discovered all of this trying to find a place where to test my new wms getMap
filter support... I'm committing it anyways, but feeling uneasy knowing it's not tested
anywhere...
Cheers
Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Brent Owens ha scritto:
Testing has been one of the hardest things I have found, but the http unit tests seem to help a fair amount. But they test more of the whole workflow and not just a single unit of code, so they can't really pinpoint the problem.
Indeed, that's why I'd like unit tests around
The configuration that is used is the userbasic data_dir configuration, with states and the population style. Of course this style has changed since the tests were made.
Maybe we need to deploy with a test configuration?
Well, a list of URL for common configurations would be nice.
So far I've managed to put my hands on the cite configs, and the basic one, but I don't know
where to get the userbasic one
Cheers
Andrea
The userbasic one can be found here:
geo.openplans.org/geoserver/config/UserBasic.zip
Brent Owens
(The Open Planning Project)
aaime@anonymised.com wrote:
Brent Owens ha scritto:
Testing has been one of the hardest things I have found, but the http unit tests seem to help a fair amount. But they test more of the whole workflow and not just a single unit of code, so they can't really pinpoint the problem.
Indeed, that's why I'd like unit tests around
The configuration that is used is the userbasic data_dir configuration, with states and the population style. Of course this style has changed since the tests were made.
Maybe we need to deploy with a test configuration?
Well, a list of URL for common configurations would be nice.
So far I've managed to put my hands on the cite configs, and the basic one, but I don't know
where to get the userbasic one
Cheers
Andrea