FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MapServer/src/mapscript/python/tests/runtests.py at main · jbfrd/MapServer · GitHub
jbfrd
/
MapServer
Public
forked from
MapServer/MapServer
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MapServer
/
src
/
mapscript
/
python
/
tests
/
runtests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
148 lines (114 loc) · 5.21 KB
Breadcrumbs
MapServer
/
src
/
mapscript
/
python
/
tests
/
runtests.py
Copy path
File metadata and controls
148 lines (114 loc) · 5.21 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# $Id$
#
# Project: MapServer
# Purpose: Comprehensive xUnit style Python mapscript test suite
# Author: Sean Gillies, sgillies@frii.com
#
# ===========================================================================
# Copyright (c) 2004, Sean Gillies
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# ===========================================================================
#
# Execute this module as a script from mapserver/mapscript/python
#
# python tests/runtests.py -v
#
# ===========================================================================
import
unittest
# Import test cases
import
cases
from
cases
.
recttest
import
RectObjTestCase
from
cases
.
hashtest
import
HashTableTestCase
,
WebMetadataTestCase
from
cases
.
hashtest
import
LayerMetadataTestCase
,
ClassMetadataTestCase
from
cases
.
owstest
import
OWSRequestTestCase
from
cases
.
clonetest
import
MapCloningTestCase
from
cases
.
imagetest
import
ImageObjTestCase
,
ImageWriteTestCase
from
cases
.
maptest
import
MapConstructorTestCase
from
cases
.
maptest
import
MapLayersTestCase
from
cases
.
maptest
import
MapExtentTestCase
from
cases
.
maptest
import
MapExceptionTestCase
from
cases
.
maptest
import
EmptyMapExceptionTestCase
from
cases
.
maptest
import
MapSizeTestCase
from
cases
.
layertest
import
LayerConstructorTestCase
from
cases
.
layertest
import
LayerExtentTestCase
from
cases
.
layertest
import
LayerRasterProcessingTestCase
from
cases
.
layertest
import
LayerTestCase
from
cases
.
layertest
import
RemoveLayerTestCase
from
cases
.
zoomtest
import
ZoomPointTestCase
from
cases
.
zoomtest
import
ZoomRectangleTestCase
from
cases
.
zoomtest
import
ZoomScaleTestCase
from
cases
.
linetest
import
LineObjTestCase
from
cases
.
shapetest
import
ShapePointTestCase
from
cases
.
pointtest
import
PointObjTestCase
from
cases
.
shapetest
import
InlineFeatureTestCase
from
cases
.
styletest
import
DrawProgrammedStylesTestCase
from
cases
.
styletest
import
NewStylesTestCase
from
cases
.
styletest
import
BrushCachingTestCase
from
cases
.
colortest
import
ColorObjTestCase
from
cases
.
symboltest
import
SymbolTestCase
from
cases
.
symboltest
import
MapSymbolTestCase
from
cases
.
symbolsettest
import
SymbolSetTestCase
from
cases
.
symbolsettest
import
MapSymbolSetTestCase
from
cases
.
outputformattest
import
OutputFormatTestCase
from
cases
.
outputformattest
import
MapOutputFormatTestCase
from
cases
.
labeltest
import
LabelCacheMemberTestCase
from
cases
.
resultcachetest
import
ResultCacheTestCase
from
cases
.
resultcachetest
import
PointQueryResultsTestCase
from
cases
.
resultcachetest
import
DumpAndLoadTestCase
# Create a test suite
suite
=
unittest
.
TestSuite
()
# Add tests to the suite
suite
.
addTests
([
RectObjTestCase
()])
suite
.
addTests
([
HashTableTestCase
(),
WebMetadataTestCase
(),
LayerMetadataTestCase
(),
ClassMetadataTestCase
()])
suite
.
addTests
([
MapCloningTestCase
()])
suite
.
addTests
([
OWSRequestTestCase
()])
suite
.
addTests
([
ImageObjTestCase
(),
ImageWriteTestCase
()])
suite
.
addTests
([
MapConstructorTestCase
(),
MapLayersTestCase
(),
MapExtentTestCase
(),
MapExceptionTestCase
(),
EmptyMapExceptionTestCase
()])
suite
.
addTests
([
LayerConstructorTestCase
(),
LayerExtentTestCase
(),
LayerRasterProcessingTestCase
(),
RemoveLayerTestCase
()])
suite
.
addTests
([
LineObjTestCase
(),
ShapePointTestCase
(),
PointObjTestCase
(),
InlineFeatureTestCase
()])
suite
.
addTests
([
DrawProgrammedStylesTestCase
(),
NewStylesTestCase
(),
BrushCachingTestCase
(),
ColorObjTestCase
()])
suite
.
addTests
([
SymbolTestCase
(),
MapSymbolTestCase
()])
suite
.
addTests
([
SymbolSetTestCase
(),
MapSymbolSetTestCase
()])
suite
.
addTests
([
ZoomPointTestCase
(),
ZoomRectangleTestCase
(),
ZoomScaleTestCase
()])
suite
.
addTests
([
OutputFormatTestCase
(),
MapOutputFormatTestCase
()])
suite
.
addTest
(
LabelCacheMemberTestCase
())
suite
.
addTests
([
ResultCacheTestCase
(),
PointQueryResultsTestCase
(),
DumpAndLoadTestCase
()])
# ============================================================================
# If module is run as a script, execute every test case in the suite
if
__name__
==
'__main__'
:
unittest
.
main
()
Back
|
FazBrowse Home
|
New Git URL