Skip to content
Permalink
Browse files

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/qgis@5248 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 11, 2006
1 parent dc29cd3 commit 927f5d5c9078613ac6273814d090f0510e24dbf0
Showing with 4,754 additions and 6 deletions.
  1. +21 −2 tests/src/core/runtests.sh
  2. +508 −2 tests/src/gui/Makefile.am
  3. +21 −2 tests/src/gui/runtests.sh
  4. +48 −0 tests/src/gui/testqgsabout.cpp
  5. +32 −0 tests/src/gui/testqgsaddattrdialog.cpp
  6. +68 −0 tests/src/gui/testqgsattributeactiondialog.cpp
  7. +32 −0 tests/src/gui/testqgsattributedialog.cpp
  8. +128 −0 tests/src/gui/testqgsattributetable.cpp
  9. +88 −0 tests/src/gui/testqgsattributetabledisplay.cpp
  10. +40 −0 tests/src/gui/testqgsbookmarks.cpp
  11. +40 −0 tests/src/gui/testqgsclipboard.cpp
  12. +36 −0 tests/src/gui/testqgscontinuouscolordialog.cpp
  13. +60 −0 tests/src/gui/testqgscontinuouscolorrenderer.cpp
  14. +60 −0 tests/src/gui/testqgscoordinatetransform.cpp
  15. +60 −0 tests/src/gui/testqgscustomprojectiondialog.cpp
  16. +92 −0 tests/src/gui/testqgsdbsourceselect.cpp
  17. +28 −0 tests/src/gui/testqgsdelattrdialog.cpp
  18. +28 −0 tests/src/gui/testqgsencodingfiledialog.cpp
  19. +24 −0 tests/src/gui/testqgsfillstylewidget.cpp
  20. +36 −0 tests/src/gui/testqgsgeomtypedialog.cpp
  21. +48 −0 tests/src/gui/testqgsgraduatedsymboldialog.cpp
  22. +56 −0 tests/src/gui/testqgsgraduatedsymbolrenderer.cpp
  23. +28 −0 tests/src/gui/testqgshelpviewer.cpp
  24. +80 −0 tests/src/gui/testqgsidentifyresults.cpp
  25. +36 −0 tests/src/gui/testqgslabel.cpp
  26. +48 −0 tests/src/gui/testqgslabeldialog.cpp
  27. +48 −0 tests/src/gui/testqgslayerprojectionselector.cpp
  28. +32 −0 tests/src/gui/testqgslinestyledialog.cpp
  29. +24 −0 tests/src/gui/testqgslinestylewidget.cpp
  30. +40 −0 tests/src/gui/testqgsludialog.cpp
  31. +264 −0 tests/src/gui/testqgsmapcanvas.cpp
  32. +52 −0 tests/src/gui/testqgsmapcanvasitem.cpp
  33. +36 −0 tests/src/gui/testqgsmapcanvasmap.cpp
  34. +160 −0 tests/src/gui/testqgsmaplayer.cpp
  35. +60 −0 tests/src/gui/testqgsmaplayerregistry.cpp
  36. +68 −0 tests/src/gui/testqgsmapoverviewcanvas.cpp
  37. +52 −0 tests/src/gui/testqgsmaprender.cpp
  38. +44 −0 tests/src/gui/testqgsmapserverexport.cpp
  39. +44 −0 tests/src/gui/testqgsmaptool.cpp
  40. +48 −0 tests/src/gui/testqgsmaptoolcapture.cpp
  41. +52 −0 tests/src/gui/testqgsmaptoolidentify.cpp
  42. +36 −0 tests/src/gui/testqgsmaptoolpan.cpp
  43. +36 −0 tests/src/gui/testqgsmaptoolselect.cpp
  44. +56 −0 tests/src/gui/testqgsmaptoolvertexedit.cpp
  45. +36 −0 tests/src/gui/testqgsmaptoolzoom.cpp
  46. +44 −0 tests/src/gui/testqgsmarkerdialog.cpp
  47. +88 −0 tests/src/gui/testqgsmeasure.cpp
  48. +36 −0 tests/src/gui/testqgsmessageviewer.cpp
  49. +36 −0 tests/src/gui/testqgsnewconnection.cpp
  50. +32 −0 tests/src/gui/testqgsnewhttpconnection.cpp
  51. +52 −0 tests/src/gui/testqgsoptions.cpp
  52. +56 −0 tests/src/gui/testqgspastetransformations.cpp
  53. +32 −0 tests/src/gui/testqgspatterndialog.cpp
  54. +48 −0 tests/src/gui/testqgspgquerybuilder.cpp
  55. +48 −0 tests/src/gui/testqgspgutil.cpp
  56. +36 −0 tests/src/gui/testqgspluginmanager.cpp
  57. +36 −0 tests/src/gui/testqgspluginmetadata.cpp
  58. +24 −0 tests/src/gui/testqgspointstylewidget.cpp
  59. +96 −0 tests/src/gui/testqgsproject.cpp
  60. +56 −0 tests/src/gui/testqgsprojectproperties.cpp
  61. +36 −0 tests/src/gui/testqgsrasterlayerproperties.cpp
  62. +52 −0 tests/src/gui/testqgsrubberband.cpp
  63. +44 −0 tests/src/gui/testqgsrunprocess.cpp
  64. +44 −0 tests/src/gui/testqgssearchquerybuilder.cpp
  65. +76 −0 tests/src/gui/testqgsserversourceselect.cpp
  66. +88 −0 tests/src/gui/testqgssinglesymboldialog.cpp
  67. +56 −0 tests/src/gui/testqgssinglesymbolrenderer.cpp
  68. +124 −0 tests/src/gui/testqgsspatialrefsys.cpp
  69. +40 −0 tests/src/gui/testqgsuniquevaluedialog.cpp
  70. +68 −0 tests/src/gui/testqgsuniquevaluerenderer.cpp
  71. +48 −0 tests/src/gui/testqgsvectorfilewriter.cpp
  72. +312 −0 tests/src/gui/testqgsvectorlayer.cpp
  73. +44 −0 tests/src/gui/testqgsvectorlayerproperties.cpp
  74. +24 −0 tests/src/gui/testqgsvectorsymbologywidget.cpp
  75. +44 −0 tests/src/gui/testqgsvertexmarker.cpp
@@ -1,7 +1,26 @@
#!/bin/bash
#set -x
LIST=`ls -lah |grep rwxr-xr-x |grep -v ^d |grep -v pl$ |grep -v ~$ |grep -v .sh$ |awk '{print $8}'|awk '$1=$1' RS=`

TOTALEXES=0
TOTALFAILED=0
TOTALPASSED=0
TOTALSKIPPED=0
for FILE in $LIST;
do
echo "Running $FILE"
./${FILE} | tail -2 |head -1
RESULT=`./${FILE} | tail -2 |head -1`
PASSED=`echo ${RESULT} | awk '{print $2}'`
FAILED=`echo ${RESULT} | awk '{print $4}'`
SKIPPED=`echo ${RESULT} | awk '{print $6}'`
TOTALFAILED=`expr $TOTALFAILED + $FAILED`
TOTALPASSED=`expr $TOTALPASSED + $PASSED`
TOTALSKIPPED=`expr $TOTALSKIPPED + $SKIPPED`
TOTALEXES=`expr $TOTALEXES + 1`
done
echo "-------------------------------"
echo "TOTAL TESTS : ${TOTALEXES}"
echo "-------------------------------"
echo "TOTAL TEST CASES PASSED : ${TOTALPASSED}"
echo "TOTAL TEST CASES FAILED : ${TOTALFAILED}"
echo "TOTAL TEST CASES SKIPPED : ${TOTALSKIPPED}"
echo "-------------------------------"

0 comments on commit 927f5d5

Please sign in to comment.
You can’t perform that action at this time.