Adds the cucumber test framework referenced in issues #26, #95, #114

This commit is contained in:
Emil Tin
2012-02-14 17:21:07 +01:00
committed by DennisOSRM
parent 84b35f47a1
commit eeea5b0e81
28 changed files with 1818 additions and 1 deletions
+55
View File
@@ -0,0 +1,55 @@
@routing @bad
Feature: Handle bad data in a graceful manner
Scenario: Empty dataset
Given the nodes
| a | b |
Given the ways
| nodes |
When I route I should get
| from | to | route |
| a | b | |
Scenario: Start/end point at the same location
Given the nodes
| a | b |
| 1 | 2 |
Given the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| a | a | |
| b | b | |
| 1 | 1 | |
| 2 | 2 | |
Scenario: Start/end point far outside data area
Given the nodes
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1 |
| a | b | | | | | | | | | | | | | | | | | | | | | | | | | | | 2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 |
Given the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| 1 | a | ab |
| 2 | a | ab |
| 3 | a | ab |
| 1 | b | |
| 2 | b | |
| 3 | b | |
| 1 | 2 | |
| 1 | 3 | |
| 2 | 1 | |
| 2 | 3 | |
| 3 | 1 | |
| 3 | 2 | |