Thanks Karim for your thoughts.
I think the first step will be to create a build script and run the
current unit testing code in it. Only then will the tests be executed on
a regular basis and we will have a motivation to write tests. I talked
to our sponsor about this, and I'm optimistic we get some time to do
this step in the near future.
Did we discuss a testing framework for JS? I think Karim took a glance
at envJS, while I peeked at QUnit which relies on jQuery.
We should think about putting testing on our road map for the next quarter.
Christoph
Karim Malhas schrieb:
Dear *,
In the IRC meeting we noticed that we have no plan for testing.
Not even a definition what testing is, so I went to the wiki to see what
we have.
But appart from
"There is no unit testing in Mapbender. This will change in the near
future."
http://www.mapbender.org/Unit_test
I didn't find anything interesting, so I thought I'd write something up
1 Automated Tests
1.1 Unit Tests for PHP
1.2 Unit Tests for Javascript
These are kind of obvious. They're a little hard to do, because they
require witing tests, which is difficult when the Codebase already
exists and has varying states of Quality/Coding conventions
The goal here would be to get to a point where there are few to none
(preferably none) global variables in a collection of classes that
have a well defined interface. Some can already be used this way
some others can't.
1.3 Unit Tests for GUIs
Maybe we can come up with a way to test GUIs automaticaly after
updates?
1.4 Services
Should we test if the services are operational and working as
expected? How?
1.5 Installation
This could be automated in a VM.
2. Manual Tests
2.1 Test GUIs
Is this really the only manual test we have?
We could create checklists of how to test a GUI
1. Log in [ ]
2. Open Gui [ ]
3. perform operation X [ ]
.
.
.
Z. log out
These checklists could be the basis of an automated test. Because
really, we would like to do as little as possible manually.
I am just floating ideas here, if someone as comments, please add them.
Regards,
Karim
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev
--
********************************************
FOSSGIS Konferenz 2010
2. - 5. März 2010 in Osnabrück
http://www.fossgis.de/konferenz
********************************************
----------------------------------
Aufwind durch Wissen!
Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu
----------------------------------
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
[email protected]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev