organize cuke test with @todo and @bug

This commit is contained in:
Emil Tin 2013-09-05 20:00:42 +02:00
parent c9e40d3e59
commit 6c32d97b23
5 changed files with 76 additions and 52 deletions

View File

@ -31,19 +31,3 @@ Feature: Bike - Street names in instructions
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | d | {highway:cycleway},{highway:track} | | a | d | {highway:cycleway},{highway:track} |
@area @names @todo
Scenario: Bike - name on streets overlapping an area
Given the node map
| x | a | b | y |
| | d | c | |
And the ways
| nodes | highway | area |
| xaby | residential | |
| abcda | residential | yes |
When I route I should get
| from | to | route |
| x | y | xaby |
| y | x | xaby |

View File

@ -1,10 +1,9 @@
@routing @maxspeed @foot @routing @foot @maxspeed
Feature: Foot - Ignore max speed restrictions Feature: Foot - Ignore max speed restrictions
Background: Use specific speeds Background: Use specific speeds
Given the profile "foot" Given the profile "foot"
@todo
Scenario: Foot - Ignore maxspeed Scenario: Foot - Ignore maxspeed
Then routability should be Then routability should be
| highway | maxspeed | bothw | | highway | maxspeed | bothw |

View File

@ -233,3 +233,21 @@ Feature: Basic Routing
| d | a | abcd | | d | a | abcd |
| a | m | aeim | | a | m | aeim |
| m | a | aeim | | m | a | aeim |
Scenario: Testbot - Triangle challenge
Given the node map
| | | | d |
| a | b | c | |
| | | | e |
And the ways
| nodes | highway | oneway |
| abc | primary | |
| cd | primary | yes |
| ce | river | |
| de | primary | |
When I route I should get
| from | to | route |
| d | c | de,ce |
| e | d | de |

View File

@ -1,5 +1,5 @@
@routing @weird @todo @routing @testbot @bug
Feature: Weird routings discovered Feature: Known bugs
Background: Background:
Given the profile "testbot" Given the profile "testbot"
@ -41,39 +41,23 @@ Feature: Weird routings discovered
| h | g | ha,ab,bc,cd,de,ef,fg | | h | g | ha,ab,bc,cd,de,ef,fg |
| a | h | ab,bc,cd,de,ef,fg,gh | | a | h | ab,bc,cd,de,ef,fg,gh |
Scenario: Routing on a oneway roundabout @726
Given the node map Scenario: Weird looping, manual input
| | d | c | | Given the node locations
| e | | | b | | node | lat | lon |
| f | | | a | | a | 55.660778 | 12.573909 |
| | g | h | | | b | 55.660672 | 12.573693 |
| c | 55.660128 | 12.572546 |
| d | 55.660015 | 12.572476 |
| e | 55.660119 | 12.572325 |
| x | 55.660818 | 12.574051 |
| y | 55.660073 | 12.574067 |
And the ways And the ways
| nodes | oneway | | nodes |
| ab | yes | | abc |
| bc | yes | | cdec |
| cd | yes |
| de | yes |
| ef | yes |
| fg | yes |
| gh | yes |
| ha | yes |
When I route I should get When I route I should get
| from | to | route | | from | to | route | turns |
| a | b | ab | | x | y | abc | head,destination |
| b | c | bc |
| c | d | cd |
| d | e | de |
| e | f | ef |
| f | g | fg |
| g | h | gh |
| h | a | ha |
| b | a | bc,cd,de,ef,fg,gh,ha |
| c | b | cd,de,ef,fg,gh,ha,ab |
| d | c | de,ef,fg,gh,ha,ab,bc |
| e | d | ef,fg,gh,ha,ab,bc,cd |
| f | e | fg,gh,ha,ab,bc,cd,de |
| g | f | gh,ha,ab,bc,cd,de,ef |
| h | g | ha,ab,bc,cd,de,ef,fg |
| a | h | ab,bc,cd,de,ef,fg,gh |

View File

@ -0,0 +1,39 @@
@routing @testbot @overlap
Feature: Testbot - overlapping ways
Background:
Given the profile "testbot"
@bug @610
Scenario: Testbot - multiple way between same nodes
Note that cb is connecting the same two nodes as bc
Given the node map
| a | b | c | d |
And the ways
| nodes | highway |
| ab | primary |
| bc | primary |
| cd | primary |
| cb | secondary |
When I route I should get
| from | to | route |
| a | d | ab,bc,cd |
| d | a | cd,bc,ab |
@bug @610
Scenario: Testbot - area on top of way
Given the node map
| x | a | b | y |
| | d | c | |
And the ways
| nodes | highway | area |
| xaby | primary | |
| abcda | secondary | yes |
When I route I should get
| from | to | route |
| x | y | xaby |
| y | x | xaby |