cucumber tests failing
Hi,
Hope this question belongs here: I've been installing on Ubuntu 12.04 and on Ubuntu 14.04 and get similar problems when running cucumber tests. I haven't found much googling and must say I have no idea how to proceed, so any help/hint would be very welcome. Here is the log:
etna@etna-VirtualBox:~/osrm-backend$ cucumber -p bugs Ruby version 1.9.3 Using default port 5000 Using default timeout 2 Using the bugs profile... @routing @testbot @bug Feature: Known bugs
Background: # features/testbot/bugs.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@routing @testbot @overlap Feature: Testbot - overlapping ways
Background: # features/testbot/overlap.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@bug @610
Scenario: Testbot - multiple way between same nodes # features/testbot/overlap.feature:8
Note that cb is connecting the same two nodes as bc
Given the node map # features/step_definitions/data.rb:23
| a | b | c | d |
And the ways # features/step_definitions/data.rb:62
| nodes | highway |
| ab | primary |
| bc | primary |
| cd | primary |
| cb | secondary |
When I route I should get # features/step_definitions/routing.rb:1
| from | to | route |
| a | d | ab,bc,cd |
| a | d | ab,cb,cd |
| d | a | cd,bc,ab |
| d | a | cd,cb,ab |
Tables were not identical (Cucumber::Ast::Table::Different)
./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/'
features/testbot/overlap.feature:20:in `When I route I should get'
@bug @610
Scenario: Testbot - area on top of way # features/testbot/overlap.feature:26
Given the node map # features/step_definitions/data.rb:23
| x | a | b | y |
| | d | c | |
And the ways # features/step_definitions/data.rb:62
| nodes | highway | area |
| xaby | primary | |
| abcda | secondary | yes |
When I route I should get # features/step_definitions/routing.rb:1
| from | to | route |
| x | y | xaby |
| x | y | xaby,abcda,xaby |
| y | x | xaby |
| y | x | xaby,abcda,xaby |
Tables were not identical (Cucumber::Ast::Table::Different)
./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/'
features/testbot/overlap.feature:36:in `When I route I should get'
@routing @testbot @via Feature: Via points
Background: # features/testbot/via.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@bug
Scenario: Via points on ring on the same oneway # features/testbot/via.feature:81
Given the node map # features/step_definitions/data.rb:23
| x | | | | |
| a | 1 | 2 | 3 | b |
| d | | | | c |
And the ways # features/step_definitions/data.rb:62
| nodes | oneway |
| xa | |
| ab | yes |
| bc | yes |
| cd | yes |
| da | yes |
When I route I should get # features/step_definitions/routing.rb:1
| waypoints | route | distance | turns |
| 1,3 | ab | 200m +-1 | head,destination |
| 3,1 | ab,bc,cd,da,ab | 800m +-1 | head,right,right,right,right,destination |
| 1,2,3 | ab | 200m +-1 | head,destination |
| 1,2,3 | ab,ab | 200m +-1 | head,via,destination |
| 1,3,2 | ab,bc,cd,da,ab | 1100m +-1 | head,right,right,right,right,destination |
| 1,3,2 | ab,ab | 300m | head,via,destination |
| 3,2,1 | ab,bc,cd,da,ab,bc,cd,da,ab | 1600m +-1 | head,right,right,right,right,right,right,right,right,destination |
| 3,2,1 | ab,bc,cd,da,ab,ab | 1000m | head,right,right,right,right,via,destination |
Tables were not identical (Cucumber::Ast::Table::Different)
./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/'
features/testbot/via.feature:96:in `When I route I should get'
Failing Scenarios: cucumber -p bugs features/testbot/overlap.feature:8 # Scenario: Testbot - multiple way between same nodes Note that cb is connecting the same two nodes as bc cucumber -p bugs features/testbot/overlap.feature:26 # Scenario: Testbot - area on top of way cucumber -p bugs features/testbot/via.feature:81 # Scenario: Via points on ring on the same oneway
3 scenarios (3 failed) 13 steps (3 failed, 10 passed) 0m2.518s
when you run "cuucmber -p bugs" you're running all the tests covering known bugs, so it is expected that you get failed scanarios. if you run plain "cucumber" you should not see failing tests.
the "bug" profile is defined in config/cucumber.yml, and just runs all test tagged with @bug.
more info about cucumber tests can be found at https://github.com/Project-OSRM/osrm-backend/wiki/Cucumber-Test-Suite
Yay, silly me, for some reason I believed that bugs were tests most likely to fail but still supposed to succeed in case of a proper install. Idd, "cucumber" does not raise any issue. Btw, I don't know if that's a known/relevant issue, I have had to add "require 'json'" to features/support/launch.rb to get tests to work. Many thanks for your help.
you are sending to the wrong email here. please remove. thanks!
Christopher
https://drip.fm/willits http://christopherwillits.com http://overlap.org
On Tue, Oct 14, 2014 at 8:51 AM, etiennecha [email protected] wrote:
Hi,
Hope this question belongs here: I've been installing on Ubuntu 12.04 and on Ubuntu 14.04 and get similar problems when running cucumber tests. I haven't found much googling and must say I have no idea how to proceed, so any help/hint would be very welcome. Here is the log:
etna@etna-VirtualBox:~/osrm-backend$ cucumber -p bugs Ruby version 1.9.3 Using default port 5000 Using default timeout 2 Using the bugs profile... @routing https://github.com/routing @testbot https://github.com/testbot @bug https://github.com/bug Feature: Known bugs
Background: # features/testbot/bugs.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@routing https://github.com/routing @testbot https://github.com/testbot @overlap https://github.com/overlap Feature: Testbot - overlapping ways
Background: # features/testbot/overlap.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@bug https://github.com/bug @610 https://github.com/610 Scenario: Testbot - multiple way between same nodes # features/testbot/overlap.feature:8 Note that cb is connecting the same two nodes as bc Given the node map # features/step_definitions/data.rb:23 | a | b | c | d | And the ways # features/step_definitions/data.rb:62 | nodes | highway | | ab | primary | | bc | primary | | cd | primary | | cb | secondary | When I route I should get # features/step_definitions/routing.rb:1 | from | to | route | | a | d | ab,bc,cd | | a | d | ab,cb,cd | | d | a | cd,bc,ab | | d | a | cd,cb,ab | Tables were not identical (Cucumber::Ast::Table::Different) ./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/' features/testbot/overlap.feature:20:in `When I route I should get'
@bug https://github.com/bug @610 https://github.com/610 Scenario: Testbot - area on top of way # features/testbot/overlap.feature:26 Given the node map # features/step_definitions/data.rb:23 | x | a | b | y | | | d | c | | And the ways # features/step_definitions/data.rb:62 | nodes | highway | area | | xaby | primary | | | abcda | secondary | yes | When I route I should get # features/step_definitions/routing.rb:1 | from | to | route | | x | y | xaby | | x | y | xaby,abcda,xaby | | y | x | xaby | | y | x | xaby,abcda,xaby | Tables were not identical (Cucumber::Ast::Table::Different) ./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/' features/testbot/overlap.feature:36:in `When I route I should get'
@routing https://github.com/routing @testbot https://github.com/testbot @via https://github.com/via Feature: Via points
Background: # features/testbot/via.feature:4 Given the profile "testbot" # features/step_definitions/data.rb:1
@bug https://github.com/bug Scenario: Via points on ring on the same oneway # features/testbot/via.feature:81 Given the node map # features/step_definitions/data.rb:23 | x | | | | | | a | 1 | 2 | 3 | b | | d | | | | c | And the ways # features/step_definitions/data.rb:62 | nodes | oneway | | xa | | | ab | yes | | bc | yes | | cd | yes | | da | yes | When I route I should get # features/step_definitions/routing.rb:1 | waypoints | route | distance | turns | | 1,3 | ab | 200m +-1 | head,destination | | 3,1 | ab,bc,cd,da,ab | 800m +-1 | head,right,right,right,right,destination | | 1,2,3 | ab | 200m +-1 | head,destination | | 1,2,3 | ab,ab | 200m +-1 | head,via,destination | | 1,3,2 | ab,bc,cd,da,ab | 1100m +-1 | head,right,right,right,right,destination | | 1,3,2 | ab,ab | 300m | head,via,destination | | 3,2,1 | ab,bc,cd,da,ab,bc,cd,da,ab | 1600m +-1 | head,right,right,right,right,right,right,right,right,destination | | 3,2,1 | ab,bc,cd,da,ab,ab | 1000m | head,right,right,right,right,via,destination | Tables were not identical (Cucumber::Ast::Table::Different) ./features/support/cucumber.rb:74:in routing_diff!' ./features/step_definitions/routing.rb:143:in/^I route I should get$/' features/testbot/via.feature:96:in `When I route I should get'
Failing Scenarios: cucumber -p bugs features/testbot/overlap.feature:8 # Scenario: Testbot - multiple way between same nodes Note that cb is connecting the same two nodes as bc cucumber -p bugs features/testbot/overlap.feature:26 # Scenario: Testbot - area on top of way cucumber -p bugs features/testbot/via.feature:81 # Scenario: Via points on ring on the same oneway
3 scenarios (3 failed) 13 steps (3 failed, 10 passed) 0m2.518s
— Reply to this email directly or view it on GitHub https://github.com/Project-OSRM/osrm-backend/issues/1220.
Locked the issue. @Overlap sorry for adding you to the convo, you can also hit the unsubscribe button on the web site for the ticket.