46 Commits

Author SHA1 Message Date
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
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
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
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
timlinux
acf4803bac Enable build of tests
If you have problems compiling touch all the files in core and try again


git-svn-id: http://svn.osgeo.org/qgis/trunk@5213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-07 23:43:33 +00:00
gsherman
e9fc5e82d9 Fixes to test harness application. Now compiles and runs but doesn't do anything useful yet.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5157 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-04 03:32:25 +00:00
timlinux
745e2f2229 Added missing makefile.am
git-svn-id: http://svn.osgeo.org/qgis/trunk@5143 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-03 16:10:44 +00:00
timlinux
70c9c4338d Remove this inadvertantly added file
git-svn-id: http://svn.osgeo.org/qgis/trunk@5142 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-03 14:17:57 +00:00
timlinux
7b40c5576e Further additions to unit test framework. Disabled in build system now pending resolution of compilation issues.
git-svn-id: http://svn.osgeo.org/qgis/trunk@5141 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-03 13:31:35 +00:00
timlinux
9c77c76abf Move existing unit tests into algorithms directory
git-svn-id: http://svn.osgeo.org/qgis/trunk@5106 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-03-29 00:50:03 +00:00
mcoletti
8f27a114d6 - by golly, someone moved QgsScaleCalculator units to QGis
- using the various *config utils generates -I strings that apparently flummox
  qmake; so now strip those out before appending the include strings generated
  from config script invocations

The test suite now runs again successfully.  Go me.  Or something.


git-svn-id: http://svn.osgeo.org/qgis/trunk@3959 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-23 02:24:56 +00:00
mcoletti
d259a84a49 Synched with latest snapshot of dependent object files. Also now depend on
qgis library.  Also use cppunit configure script for command line options.

Sadly, QgsProject seems to be broken, though that may have more to do with
local state of source than anything else.


git-svn-id: http://svn.osgeo.org/qgis/trunk@3957 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-23 01:13:12 +00:00
mcoletti
3f519be7fc - removed completed TODO items
- now catches expected exceptions for not finding map extents since there
  aren't going to be any in the test simulation


git-svn-id: http://svn.osgeo.org/qgis/trunk@3197 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 22:34:10 +00:00
mcoletti
74d84da489 Compensated for new binaries to link against, including sqlite3
git-svn-id: http://svn.osgeo.org/qgis/trunk@3191 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 21:41:33 +00:00
gsherman
8c64ebf684 ** Merged Projections_Branch into HEAD
Problems:
      Polygon outlines are not drawn. This was checked twice and no cause
      was found.

      Projections do not work in all circumstances

      Note that both the proj4 library and sqlite3 are now required. The
      build system has not been modified to test for these yet.

      Qt 3.3.x is required to build this source tree.

      Make sure to increment the EXTRA_VERSION in configure.in when
      committing changes.

      Make sure to update the Changelog with each commit


git-svn-id: http://svn.osgeo.org/qgis/trunk@3112 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 07:04:07 +00:00
mcoletti
6837444c0f Added test for deep key name sequences.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2928 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-07 20:43:51 +00:00
mcoletti
82ae4ea6d7 Synched with QgsProject changes.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2902 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-02 23:34:36 +00:00
g_j_m
51072eb657 Added .cvsignore file to remove a cvs update 'unknown file' message
git-svn-id: http://svn.osgeo.org/qgis/trunk@2876 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-28 05:50:59 +00:00
mcoletti
18ed87e902 Added tests for subkeyList and entryList
git-svn-id: http://svn.osgeo.org/qgis/trunk@2866 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-24 18:27:09 +00:00
mcoletti
dadebea3a6 Added tests for QgsProject::clearProperties()
git-svn-id: http://svn.osgeo.org/qgis/trunk@2677 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 23:09:32 +00:00
mcoletti
eb773960fd Added tests for removeEntry()
git-svn-id: http://svn.osgeo.org/qgis/trunk@2676 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 23:07:31 +00:00
mcoletti
6224352a76 Now test that write entry members properly set dirty bit.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2675 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 22:03:37 +00:00
mcoletti
fad8e586d4 Now test reading and writing key entries.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2673 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 21:54:23 +00:00
mcoletti
ce022560f1 Now test for reading empty key entries correctly. Made member names more standards compliant.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2672 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 21:22:30 +00:00
mcoletti
589203d85f Added two more tests. Fixed bug whereby Qgis include path was not set.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2671 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 21:00:11 +00:00
mcoletti
19fbf33623 Added cppunit URL to README.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2670 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 20:52:26 +00:00
mcoletti
28ae79b5ca Initial commit of QgsProject test suite. Only two tests with this version.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2669 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-19 20:51:24 +00:00
gsherman
6e87fa2911 Added cppunit url to readme
git-svn-id: http://svn.osgeo.org/qgis/trunk@2656 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-18 19:59:45 +00:00
gsherman
f195828ea3 Added more tests
git-svn-id: http://svn.osgeo.org/qgis/trunk@2637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-16 00:11:43 +00:00
gsherman
e4b8530a61 Test suite for projection related classes/functions. Requires cppunit to
run the tests. See the README in each directory for information on building
and running tests.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2632 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 18:19:27 +00:00