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 :/
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:
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 :/