Skip to content

Random failures seen when output doesn't match #7

@asgrim

Description

@asgrim

Not sure how to reproduce currently (sorry), but I get very occasional failures on my local machine where it seems like some output is unexpectedly missing, for example:

  Scenario: Steps below the threshold are logged # features/scenario_speedtrap.feature:67
    Given I have the feature:                    # FeatureContext::iHaveTheFeature()
      """
      Feature: Slow steps are logged
      Scenario: This scenario should be logged
        When I wait for 2 seconds
      """
    And I have the configuration:                # FeatureContext::iHaveTheConfiguration()
      """
      default:
        extensions:
          Brunty\Behat\SpeedtrapExtension:
              scenario_threshold: 3000
              step_threshold: 500
      """
    When I run behat                             # FeatureContext::iRunBehatWithTheOption()
    Then I should see:                           # FeatureContext::iShouldSee()
      """
      The following steps were above your configured threshold: 500ms
      TIME to run step in features/feature.feature:3 - When I wait for 2 seconds
      """
      Did not get output after expected time. Actual: "Feature: Slow steps are logged
      
        Scenario: This scenario should be logged # features/feature.feature:2
          When I wait for 2 seconds              # FeatureContext::iWaitFor()
      
      
      
      2004ms to run step in features/feature.feature:3 - When I wait for 2 seconds
      
      1 scenario (1 passed)
      1 step (1 passed)0m2.01s (9.04Mb)
      " (RuntimeException)

I'm assuming this is something to do with timing or something, but I may be wrong here. Difficult to consistently reproduce, so this is more of a flag at the moment until a pattern can be spotted :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions