Cucumber Table diff isn't displayed in console

When running Cucumber tests inside RM, any step that involves comparing tables only tells you whether the tables matched or not. It is far more useful to know HOW they differed. For example, here is the output from a test inside RM (RM-93.130)


Cucumber::Ast::Table::Different: Tables were not identical
./features/step_definitions/foo_steps.rb:17:in `/^I should see the following foos:$/'
/home/jeff/projects/foo/features/manage_foos.feature:22:in `Then I should see the following foos:'

Here is the pertinent section of the output from the same test run outside RM

  Scenario: Delete tasks                  # /home/jeff/projects/foo/features/manage_foos.feature:14
    Given the following foos:             # features/step_definitions/foo_steps.rb:1
      | title   | note   |
      | title 1 | note 1 |
      | title 2 | note 2 |
      | title 3 | note 3 |
      | title 4 | note 4 |
    When I delete the 3rd foo             # features/step_definitions/foo_steps.rb:5
    Then I should see the following foos: # features/step_definitions/foo_steps.rb:14
      | title   | note   |
      | title 1 | note 1 |
      | title 2 | note 2 |
      | title 4 | note 4 |
      | title 3 | note 3 |
      Tables were not identical (Cucumber::Ast::Table::Different)

You have created an amazing IDE for Ruby/Rails development. The fact that you haven't yet added support for every possible feature anyone would ever want, does not make it less amazing. Keep up the excellent work!

2 comments

Hello Jeff, please submit a request at youtrack.jetbrains.net/

0

Please sign in to leave a comment.