Seems like drush does some internal formatting which makes the output useless ("Overridden" gets broken up into 10 lines with 1 letter each)
Any ideas?

 @api
  Scenario: No features are overridden            # features/installation.feature:12
    Given I run drush "features-list"             # FeatureContext::assertDrushCommand()
    Then drush output should contain "Overridden" # FeatureContext::assertDrushOutput()
      The last drush command output did not contain 'Overridden'.
      Instead, it was:
      
       Name                            Feature                   Status    Version           S 
                                                                                             t 
                                                                                             a 
                                                                                             t 
                                                                                             e 
       Commons Activity Page           commons_activity_page     Enabled   7.x-3.3+1532-dev    
       Commons Activity Streams        commons_activity_streams  Enabled   7.x-3.3+1532-dev    
       Commons Activity Streams        commons_activity_streams  Enabled   7.x-3.3+1532-dev    
       Groups                          _groups                                                 
       Commons Body Field              commons_body              Enabled   7.x-3.3+1532-dev    
       Commons Tabbed Browsing Widget  commons_bw                Enabled   7.x-3.3+1532-dev    
       Commons Polls                   commons_polls             Enabled   7.x-3.3+1532-dev  O 
                                                                                             v 
                                                                                             e 
                                                                                             r 
                                                                                             r 
                                                                                             i 
                                                                                             d 
                                                                                             d 
                                                                                             e 
                                                                                             n 

Comments

jhedstrom’s picture

I wonder if when checking output, we could strip newlines, and replace all multiple spaces with single spaces. Alternatively, drush 6 supports output formats, so we could try to compare a different format.

rb2k’s picture

I wasn't able to get anything useful with output formats (or --pipe) and feature-list from drush 6.
I think the feature module doesn't implement it...

rb2k’s picture

For now, I use this horrible fix:

  @api
  Scenario: No features are overridden
    Given I run drush "features-list"
    Then drush output should not contain "  O"

(together with https://drupal.org/node/2100105 )

b2f’s picture

Using drush version 5.7 on kubuntu, I coundn't reproduce this issue. The state column is formatted as it should. Anyone else notice this bug ? What environement are you using ?

I think we need more info. What is the ouput of your "drush features-list" command when used without behat ?

  @api
  Scenario: No features are overridden
    Given I run drush "features-list"
    Then drush output should contain "Overridden"

More people need to try this scenario and give us their results. It could be related to your console setup.

b2f’s picture

Status: Active » Postponed (maintainer needs more info)
eliza411’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Since this is a year old and we've been unable to reproduce this, I'm marking it closed. If it's still a problem, please don't hesitate to reopen it.