Patrick Niklaus
bf455c8d20
Fix empty parameter list
2016-01-26 22:56:19 +01:00
Patrick Niklaus
c05d23a586
Fix POST request
2016-01-26 22:56:19 +01:00
Freenerd
2a882aa58d
Tests: Preserve param order on POST
2016-01-26 22:56:19 +01:00
Moritz Kobitzsch
1c1bfd7541
Fix routing when start and target are on the same segment
...
Fixes issue #1864 . Given the simple set-up:
a --> b --> c
^-----------|
This would translate into an edge based graph (ab) -> (bc),
(bc) -> (ca), (ca) -> (ab).
Starting at the end of the one-way street (ab) and going to
the beginning, the query has to find a self-loop within the
graph (ab) -> (bc) -> (ca) -> (ab), as both nodes map to the
same segment (ab).
2016-01-19 23:26:19 +01:00
Daniel J. Hofmann
9959fd26bb
Do not convert osm xml files to pbf for the cucumber tests
2016-01-13 17:57:22 +01:00
Patrick Niklaus
78ac3cffde
Add max values for viaroute and trip and reorganize return code handling
...
"status" is now always:
- 200 if the request was successful
- 207 if the result is empty (no path found)
- 400 if the request is invalid
viaroute and trip now have a maximum of 500 and 100 locations
respectively. Override with the --max-viaroute-size and --max-trip-size
parameters.
2015-12-17 04:14:34 +01:00
Daniel Patterson
4ddbd2efb6
Expose component size variable as command-line option (this allows testing of big/small components in cucumber tests).
...
Add ability to pass extra parameters to during tests.
Limit distance table search so that it doesn't return any big components if they're beyond max_distance.
2015-12-11 16:53:10 +01:00
Patrick Niklaus
cdb1918973
Refactor StaticRTree to remove application dependent code
...
StaticRTree now acts like a container, just returning the input data
(NodeBasedEdge) and not PhantomNodes.
2015-12-09 23:37:05 +01:00
Patrick Niklaus
4ec3102df2
Refactor cucumber tests
2015-12-09 21:17:18 +01:00
Fabien Girard
f2ee0aad20
Use now 3 parameters for matrix: loc/dst/src
2015-12-09 21:17:18 +01:00
Daniel Patterson
f87f18a291
Add support for 64bit OSM node id values.
2015-11-30 12:37:58 -08:00
Daniel Patterson
e45656e5bf
Refactor edge expansion into extract phase. New temporary file is generated - '.osrm.ebg' which is used by
2015-10-06 09:23:17 -07:00
Andreas Gruß
de29574314
tests + instructions for map matching
2015-09-11 01:34:10 +02:00
Lauren Budorick
bac6703f8e
Implement raster source feature to read data from third-party sources, to be used in lua profiles.
...
* Adds a data structure, RasterSource, to store parsed + queryable data
* Adds bindings for that and relevant data structures as well as source_function and segment_function
* Adds relevant unit tests and cucumber tests
* Bring-your-own-data feature
2015-09-03 22:28:18 -07:00
Huyen Chau Nguyen
a71159667d
add cucumber test for the trip plugin
2015-09-01 15:20:35 +02:00
Patrick Niklaus
2ff2ce460c
Add .core to cucumber renaming
2015-08-19 12:27:44 +02:00
Andreas Gruß
d726ce6340
removed send_simple_request
2015-06-07 12:20:03 +02:00
Andreas Gruß
b406844c96
rearranged send_request parameters
2015-06-07 11:06:37 +02:00
Andreas Gruß
153d38f10c
post/get handler added, background section for HTTP request
2015-06-05 13:26:27 +02:00
Andreas Gruß
dce917eb74
post tests via query options available
2015-06-04 17:39:54 +02:00
Andreas Gruß
eb711787ae
tests added
2015-06-03 15:31:20 +02:00
alex85k
a457d69034
fix cucumber tests running on Windows
2015-05-09 19:22:16 +05:00
Emil Tin
e1a13f5ce8
remove obsolete cucumber patch
2015-04-30 18:15:46 +02:00
Emil Tin
1ed2c16a51
upgrade to cucumber 2.0
2015-04-30 18:15:46 +02:00
Patrick Niklaus
bc8666df83
Add tests for matching
2015-03-08 01:32:13 +01:00
Patrick Niklaus
7829e3c132
Add step definition and support code for matching
2015-03-05 00:12:26 +01:00
Emil Tin
eebf3a54e2
cuke: abort if bins are missing, closes #1341
2015-01-12 13:56:43 +01:00
Dennis Luxen
b1a12768e1
fix parameter name for maximum number of location in distance table plugin
2015-01-08 17:41:19 +01:00
Emil Tin
593808f24d
initial support for testing distance matrices
2015-01-01 15:12:45 +01:00
Patrick Niklaus
fc1db35f27
Add missing json dependency to cucumber
2014-11-23 13:29:22 +01:00
Emil Tin
93767d68f8
remove debug output
2014-10-17 15:07:56 +02:00
Emil Tin
cc3646ca16
fix tests that use {base} expansion
2014-10-17 15:07:56 +02:00
Emil Tin
48333f73d5
rename rather than copy then when possible
2014-10-17 15:07:56 +02:00
Emil Tin
1f4241a63d
smarter caching of test files
2014-10-17 15:07:56 +02:00
Emil Tin
8438024370
avoid unnessecary process check
2014-10-14 16:05:06 +02:00
Emil Tin
71b967d243
test both datastore and direct data load
2014-10-14 15:35:14 +02:00
Emil Tin
76fb0cb965
get process handling up to date
2014-10-13 11:19:49 +02:00
Emil Tin
db06cdb4ce
adjust datastore testing
2014-10-13 10:58:03 +02:00
Emil Tin
7ba8e51fa9
use osrm-database during testing
2014-10-13 10:58:03 +02:00
Dennis Luxen
c9afd9a281
make dummy date in generated test files valid
2014-07-31 16:41:38 +02:00
Emil Tin
73b32bb45e
enable setting query params in cuke tests
2014-07-22 13:24:26 +02:00
Guillaume Beraudo
d6bc3c5175
Remove unused test method
2014-06-24 17:18:52 +02:00
alex85k
d0284991ed
patch Ruby files for successful testing on Windows
2014-06-11 18:38:01 +06:00
Emil Tin
21c4691d40
cuke: make File.tail utility more robust
2014-06-08 12:06:34 +02:00
Dennis Luxen
2d498cb88b
adapt JSON parsing in tests to allow for omitted fields
2014-05-20 14:33:00 +02:00
Emil Tin
2cddf90e49
test different status message and query parsing
2014-05-07 10:38:28 +02:00
Emil Tin
a12209e61d
cuke: test options for osrm-extract and osrm-prepare
2014-04-21 17:40:07 +02:00
Emil Tin
df83dfdfe8
cuke: test travel time of individual instructions
2014-04-02 16:05:09 +02:00
Emil Tin
220e7748a9
cuke: use .osm by default, add tests for .pbf
2014-03-31 16:55:39 +02:00
Emil Tin
ba2356d2ba
cuke: optional timeout
2014-03-31 16:55:01 +02:00
Emil Tin
3ccd3b5650
cuke: increase osrm launch/shutdown timeout
2014-03-31 13:55:29 +02:00
Emil Tin
8b1f09d302
cuke: test speed, fix logging, clear log files on each run
2014-03-27 10:38:03 +01:00
Emil Tin
9e10b94339
cuke: test file options
2014-03-22 12:01:07 +01:00
Emil Tin
c1806476af
cuke: test osrm-routed options
2014-03-19 19:28:24 +01:00
Emil Tin
af41c9f6e4
cuke: detach osrm-routed to avoid zombie processes
2014-03-19 18:03:47 +01:00
Emil Tin
613e38d7f8
use boost program_options in osrm-prepare/routed
2013-10-12 09:59:42 +02:00
Emil Tin
6470838065
cleanup indentation of ruby files
2013-09-18 08:16:19 +02:00
Emil Tin
3cf72e93e6
allow setting origin in cuke tests
2013-08-31 23:35:26 +02:00
Emil Tin
407d73a735
removing trailing whitespace in cuke/ruby files
2013-08-29 19:39:45 +02:00
Emil Tin
1d6e602473
test nearest/locate at high lat/lon, fix fuzzy match of negative numbers
2013-08-28 09:49:56 +02:00
Emil Tin
7a5bceae4c
tests for /locate
2013-08-26 22:25:43 +02:00
Emil Tin
e42b8fc37d
use boost program_options in extractor
2013-08-14 15:15:35 +02:00
Emil Tin
63059cfab3
make cuke tests work with ruby 2.x
2013-08-02 09:35:28 +02:00
Emil Tin
a45215ddf2
cuke test roundabout exit nr
2013-07-30 17:58:00 +02:00
Dennis Luxen
f13694b539
fixing tests to reflect new r-tree data structure
2013-06-26 09:34:01 -04:00
Emil Tin
9588ef00a5
use alt=false during cucumber testing
2013-05-10 17:17:24 +02:00
Emil Tin
67addfdb37
test via points
2013-05-05 11:14:09 +02:00
Emil Tin
36f3c0f77a
make cuke use bins in build/
2013-04-26 10:22:32 +02:00
Emil Tin
af490bae8e
fix timestamp test
2013-04-16 16:56:05 +02:00
Emil Tin
5eecd0a57d
cuke: keep number nodes locally, not in osm file
2013-04-13 11:38:41 +02:00
Emil Tin
8893fd1656
test for bearing param (todo)
2013-03-18 21:26:36 +01:00
Emil Tin
081831e6ea
test for mode flag (todo)
2013-03-18 15:51:41 +01:00
Emil Tin
1ecad20a0d
support xml, move duplicated xml/pbf code to base
2013-02-22 15:49:43 +01:00
DennisOSRM
348e656671
Merge branch 'feature/opposite_direction' into develop
2013-02-04 18:38:15 +01:00
Emil Tin
97f1dc0749
update maxspeed tests, remove maxspeed from foot profile
2013-02-04 11:30:46 +01:00
Emil Tin
d67ac1a708
fuzzy matching in routability tables, ported from opposite branch
2013-02-04 10:33:25 +01:00
Emil Tin
ccdd0f599a
test nearest API
2013-02-03 20:17:06 +01:00
Emil Tin
b3d517943a
fuzzy ranges on routability tables, value shortcuts
2013-02-03 14:03:37 +01:00
Emil Tin
ce43b09991
support lua require()
2012-12-28 22:40:00 +01:00
Emil Tin
9857fb7696
dont rehash binaries and profiles for every cucumber scenario
2012-12-19 16:09:05 +01:00
Emil Tin
102e87bcc0
clean up log extracts during cuke failures
2012-12-17 19:27:18 +01:00
Emil Tin
604043e3d8
add log extracts if osrm-routed or osmosis fails during tests
2012-12-17 19:22:05 +01:00
Emil Tin
5a5b4eb1f7
output last lines from log if binary exists during testing
2012-12-17 17:32:15 +01:00
Emil Tin
2ea5714d95
use ps to check if process is still running
2012-12-16 20:51:19 +01:00
Emil Tin
a51c7416d5
use ruby 1.9 and Process.spawn when running test
2012-12-16 19:45:26 +01:00
Emil Tin
ec56478a3c
cucumber cleanup, removed unused code
2012-12-16 13:36:47 +01:00
Emil Tin
7e9614b9ec
kill osrm-routed if it refuses to shutdown in cuke tests
2012-12-15 17:01:24 +01:00
Emil Tin
ae106a3a90
improve cuke process management, support OSRM_PORT
2012-12-15 12:38:07 +01:00
Emil Tin
29344f55ae
fix osrm bin hashes
2012-12-15 12:38:07 +01:00
Emil Tin
cc7f761c3e
revert to alt=true in cuke test
2012-12-10 17:05:22 +01:00
Emil Tin
b10b716733
cuke testing of timestamp api
2012-12-10 17:05:22 +01:00
Emil Tin
e41d52570e
support testing of turn directions
2012-12-09 18:21:56 +01:00
DennisOSRM
aed5848f5a
Requesting instructions by default
2012-11-20 10:49:03 +01:00
Dennis Luxen
210f586d49
Removing deprecated API call from tests
2012-11-19 21:40:28 +01:00
Emil Tin
3a706cade7
in tests, use profile arg instead of copying file
2012-10-13 22:41:19 +02:00
Emil Tin
7400e60599
allow nil tags in highway columns in tests
2012-10-05 15:52:44 +02:00
Emil Tin
81b9e3b4cb
test access tags
2012-10-01 12:36:06 +02:00
Emil Tin
098454c875
testing of barrier nodes
2012-09-29 11:32:53 +02:00
Emil Tin
585558a9ae
add scenario names to cache files, makes it easier to inspect .osm files in JOSM
2012-09-28 21:23:13 +02:00
Emil Tin
334f02d7f8
add test for process error codes
2012-09-28 15:29:13 +02:00
Emil Tin
f9279a3646
move cuke origin to 1,1, add origin tests
2012-09-27 16:31:09 +02:00
Emil Tin
3c903ddffd
clean up duplicated lua profiles
2012-09-27 11:35:56 +02:00
Emil Tin
e36a517e86
+-1m in distance tests, remove huge scale tests
2012-09-21 19:55:55 +02:00
Emil Tin
74cc50f52b
update cucumber test to work with lua profiles
2012-09-19 19:01:11 +02:00
Emil Tin
d6fd898101
readjust spacing to avoid risk of overflow
2012-08-21 18:02:36 +02:00
Emil Tin
41e7dbf205
larger spacing when testing individual ways, avoids picking wrong one
2012-08-21 16:44:30 +02:00
Project OSRM
b353df83ee
Merge pull request #264 from emiltin/cuke_bearing
...
cuke_bearing
2012-05-30 00:20:45 -07:00
Emil Tin
63c6c06436
convert to protobuffer before loading into osrm
2012-05-25 14:13:00 +02:00
Emil Tin
5ed9c41d5e
cuke_bearing
2012-05-14 22:06:56 +02:00
Project OSRM
86128892d7
Merge pull request #245 from emiltin/cuke_profiles
...
speedprofiles specifically for testing
2012-05-08 02:17:27 -07:00
Emil Tin
580a760aa1
speedprofiles specifically for testing
2012-05-05 17:05:55 +02:00
Emil Tin
f5da6a0e5f
use .osrm.edges file in Rake task and cucumber tests
2012-05-05 16:12:58 +02:00
Emil Tin
f359927b09
osrm now returns codes intread of strings, handle this in tests
2012-04-17 15:22:55 +02:00
Emil Tin
c669d46efb
ignore 'You have reached your destination' when parsing route instructions in cucumber tests
2012-04-12 16:47:43 +02:00
Emil Tin
f41495dc7a
osrm-prepare still reads xml, so avoid converting to pfb format. avoids dependency on osmosis tool
2012-03-06 15:05:52 +01:00
Emil Tin
8200f889fb
updated cucumber test to use loc= query params
2012-03-06 14:50:59 +01:00
Emil Tin
b0ecb869f2
updated turn restriction tests. use correct .osrm.restrictions file during tests. add tests for no-right-turn
2012-03-02 16:37:55 +01:00
Emil Tin
f841a7a25a
reprocess data files during tests if osrm-routed binary has changed
2012-02-24 14:58:49 +01:00
Emil Tin
0984a669ce
enable testing of way names, including ways with empty or missing name tags
2012-02-21 11:51:42 +01:00
Emil Tin
887092bacd
allow setting the grid space in tests
2012-02-19 20:49:10 +01:00
Project OSRM
091cd57f68
Merge pull request #125 from emiltin/cuke_row_order
...
in cucumber tests, always show failed rows right below expected ones
2012-02-18 10:22:14 -08:00
Project OSRM
045b1e0cb8
Merge pull request #124 from emiltin/query_delimiter
...
update tests to use new query delimter ? instead of &
2012-02-18 10:21:57 -08:00
Emil Tin
801490b9fc
perform a sanity check on which ways are used during routability tests
2012-02-18 16:22:54 +01:00
Emil Tin
695fecddeb
in cucumber tests, always show failed rows right below expected ones
2012-02-18 14:52:48 +01:00
Emil Tin
429eb316d0
update tests to use new query delimter ? instead of &
2012-02-18 14:41:15 +01:00
Emil Tin
eeea5b0e81
Adds the cucumber test framework referenced in issues #26 , #95 , #114
2012-02-15 10:50:43 +01:00