3638 Commits

Author SHA1 Message Date
timlinux
95cff96d0c Better formatting for unit test outputs
git-svn-id: http://svn.osgeo.org/qgis/trunk@5263 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 14:06:55 +00:00
timlinux
e2d5673e1a Tidy ups to unit test reporting, first pass at making html report (still under construction)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5262 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 11:50:20 +00:00
g_j_m
e58150e895 Fix for ticket #69
git-svn-id: http://svn.osgeo.org/qgis/trunk@5261 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 11:03:21 +00:00
wonder
cd7af0d727 Improved script a bit, now it works for me.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5260 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 10:54:43 +00:00
timlinux
c3b8ff34d0 Add raster to make file
Make dir detection more wonder_sk friendly


git-svn-id: http://svn.osgeo.org/qgis/trunk@5259 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 10:12:42 +00:00
timlinux
f4c171dea8 Add raster to tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@5258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 10:11:49 +00:00
wonder
e6656035dd Qt4 detection by using pkg-config is not default anymore, to enable it, use --with-qt-pkg-config
Added support for QtTest in pkg-config detection.


git-svn-id: http://svn.osgeo.org/qgis/trunk@5257 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 09:58:33 +00:00
g_j_m
471d17bcd0 Fix for ticket #29
git-svn-id: http://svn.osgeo.org/qgis/trunk@5256 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 09:52:52 +00:00
timlinux
15433c5a6d Test stubs for raster layer
git-svn-id: http://svn.osgeo.org/qgis/trunk@5255 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 09:31:32 +00:00
timlinux
2f61769fc0 Initial framwork for raster tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@5254 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 09:10:35 +00:00
timlinux
6b8a5c7116 Added a runtests bash shell script in src that will iteratively run tests in all dirs below this point. Sample output:
-------------------------------
MODULE : core
-------------------------------
MODULE TESTS  : 33
MODULE TEST CASES PASSED  : 293
MODULE TEST CASES FAILED  : 0
MODULE TEST CASES SKIPPED : 0
-------------------------------
MODULE : gui
-------------------------------
MODULE TESTS  : 70
MODULE TEST CASES PASSED  : 924
MODULE TEST CASES FAILED  : 0
MODULE TEST CASES SKIPPED : 0
-------------------------------
TOTALS :
-------------------------------
TOTAL TESTS  : 103
TOTAL TEST CASES PASSED  : 1217
TOTAL TEST CASES FAILED  : 0
TOTAL TEST CASES SKIPPED : 0
       


git-svn-id: http://svn.osgeo.org/qgis/trunk@5253 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 08:41:42 +00:00
timlinux
8d5c4b2165 Comment oout references to disabled targets
git-svn-id: http://svn.osgeo.org/qgis/trunk@5252 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 08:18:28 +00:00
timlinux
5693f5b158 Remove trailing slash from commented out line
git-svn-id: http://svn.osgeo.org/qgis/trunk@5251 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 08:11:14 +00:00
mhugent
da21e23c35 further vertex editing changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@5250 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 07:49:38 +00:00
mhugent
60ecfb2810 Added method to delete vertices from polygons
git-svn-id: http://svn.osgeo.org/qgis/trunk@5249 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 07:27:15 +00:00
timlinux
bb46cb871b Added stubbed tests for all classes in gui lib. Made some improvemtns to runtests script so that it now produces a grand summary for the module that lookes like:
-------------------------------
TOTAL TESTS  : 33
-------------------------------
TOTAL TEST CASES PASSED  : 293
TOTAL TEST CASES FAILED  : 0
TOTAL TEST CASES SKIPPED : 0
-------------------------------

Note that there are only test stubs - the actual test bodies still need to be implemented.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5248 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-11 00:57:48 +00:00
timlinux
4f7a822005 Added directory and beginnings of test framework for gui lib
git-svn-id: http://svn.osgeo.org/qgis/trunk@5247 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 22:43:36 +00:00
timlinux
c464391d6e Added stubs for all classes in core
git-svn-id: http://svn.osgeo.org/qgis/trunk@5246 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 22:09:55 +00:00
mhugent
551bd4021f added a method for vertex moving which also works for muliring polygons. Add/delete vertex will follow soon (as well as similar methods for multiline and multipolygon)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5245 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 17:07:34 +00:00
rblazek
a776fa5781 fix for scripts on Windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@5244 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 15:24:42 +00:00
g_j_m
69c0c360e2 Save and read the wms proxy password and user from the config
file. Should resolve ticket #8


git-svn-id: http://svn.osgeo.org/qgis/trunk@5243 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 08:55:44 +00:00
timlinux
52fd227812 A script to build a test suite for a director of qgs source files
git-svn-id: http://svn.osgeo.org/qgis/trunk@5242 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 13:48:59 +00:00
timlinux
1110aaf576 Improvements to unit builder script - you can pass it the class nema to build the test for from the cli and it will not prompts you and just create everything - to be used in source dir parsing script that Ill add soon...
dded new test unit for qgsgeometry


git-svn-id: http://svn.osgeo.org/qgis/trunk@5241 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 13:33:37 +00:00
timlinux
971e2d342f Remove backticks when running test
Grep results to show only test totals


git-svn-id: http://svn.osgeo.org/qgis/trunk@5240 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 11:43:29 +00:00
timlinux
094b93cedc A bash scrip to run all tests in the dir
git-svn-id: http://svn.osgeo.org/qgis/trunk@5239 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 11:38:25 +00:00
g_j_m
07a9b64d1b Return QByteArrays instead of 0's.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5238 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 10:18:17 +00:00
timlinux
72ec5c0cbf Added unit test for testqgsfeature.cpp (stubs only thus far)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5237 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 01:13:15 +00:00
timlinux
686fdd4eb9 Eliminate duplicate test cases when overloaded methods are encountered
git-svn-id: http://svn.osgeo.org/qgis/trunk@5236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 01:09:05 +00:00
timlinux
c62d4180b0 Clean up stub listing shown to user before unit test is generated
git-svn-id: http://svn.osgeo.org/qgis/trunk@5235 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 00:27:35 +00:00
timlinux
bd8b3020d8 Add stubs for methods from class being tested automatically
git-svn-id: http://svn.osgeo.org/qgis/trunk@5234 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-09 00:24:40 +00:00
g_j_m
965c86fe86 Trim leading and trailing spaces from WMS settings when storing them.
I have often found that cutting/pasting WMS url's from webpages that I
get extraneous spaces which then prevent wms from working.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 23:46:52 +00:00
mhugent
b1bc18490b layers are now editable by default such that people do not have to search for the layer file in the legend
git-svn-id: http://svn.osgeo.org/qgis/trunk@5232 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 16:41:28 +00:00
mhugent
ea91bfbdc2 Added a missing return statement to make WMS getCapabilities working
git-svn-id: http://svn.osgeo.org/qgis/trunk@5231 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 15:22:06 +00:00
g_j_m
1232fb8c90 Change #includes to Qt4 naming scheme
git-svn-id: http://svn.osgeo.org/qgis/trunk@5230 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 11:39:30 +00:00
g_j_m
273b0a1b95 Fix for ticket #3
Also change #includes to Qt4 naming scheme


git-svn-id: http://svn.osgeo.org/qgis/trunk@5229 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 11:38:43 +00:00
g_j_m
6a7570f49c Resolve the 'return a temp variable' example given in ticket #17
git-svn-id: http://svn.osgeo.org/qgis/trunk@5228 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 09:37:46 +00:00
mhugent
4e06c289d7 prevent crash in QgsRasterLayer::drawMultiBandColor
git-svn-id: http://svn.osgeo.org/qgis/trunk@5227 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 08:36:30 +00:00
mhugent
2a8a3d6400 fix for bug #55 'moving group freezes QGIS'
git-svn-id: http://svn.osgeo.org/qgis/trunk@5226 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 08:07:30 +00:00
telwertowski
816f2e9039 Fix Mac references to QtDesigner and QtTest; these are libraries and not frameworks. (Note: the line beginning "dependency_libs=" in $QTDIR/lib/libQtTest.la must also be disabled to avoid a Mac glibtool bug.)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5225 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 06:36:02 +00:00
g_j_m
1b7780278a No need to create a copy of the vector - a ref will do
git-svn-id: http://svn.osgeo.org/qgis/trunk@5224 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 05:22:12 +00:00
g_j_m
f65d06830d Apply patch in ticket #34
git-svn-id: http://svn.osgeo.org/qgis/trunk@5223 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 03:41:34 +00:00
timlinux
63df8997f9 test builder now makes additions to makefile properly
Added testqgsfield which has no tests in it yet



git-svn-id: http://svn.osgeo.org/qgis/trunk@5222 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 01:30:31 +00:00
timlinux
e29975710c More clean ups to test builder - warnning it will damge the local makefile if used at teh moment.
Added a test class for qgssymbol - which fails when run
Add rules to makefile to build symbol test


git-svn-id: http://svn.osgeo.org/qgis/trunk@5221 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 01:11:46 +00:00
timlinux
208b4dea5e First draft at a little perl script to generate a test class with method stubs automatically
git-svn-id: http://svn.osgeo.org/qgis/trunk@5220 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:56:03 +00:00
timlinux
735cb36f36 A template for creating new tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@5219 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:27:53 +00:00
timlinux
dfca9e6f5c More simplicfications - implement test directly where it is declared
git-svn-id: http://svn.osgeo.org/qgis/trunk@5218 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:23:49 +00:00
timlinux
531dacbf81 Consolidate test class into a single file to make writing tests easier and quicker
git-svn-id: http://svn.osgeo.org/qgis/trunk@5217 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:21:49 +00:00
timlinux
855b3a95d2 Dont bother with ctor and dtor in unit test to keep it simple
git-svn-id: http://svn.osgeo.org/qgis/trunk@5216 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:18:04 +00:00
timlinux
eb24cea6c8 Makefile cleanups in prepration for implementing more that one test unit
git-svn-id: http://svn.osgeo.org/qgis/trunk@5215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-08 00:11:51 +00:00
gsherman
10a5bea93b Removed -lQtTest from Makefile.am (configure adds it to QT_LDADD).
Changed include of QtTest in testqgsapplication.cpp to proper form.


git-svn-id: http://svn.osgeo.org/qgis/trunk@5214 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-07 23:51:07 +00:00