Created
March 25, 2013 20:45
Revisions
-
jtatum created this gist
Mar 25, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ @issue Feature: Issue #TBD: Logging starts with a StreamHandler way too early Scenario: Given a file named "features/steps/steps.py" with: """ import logging from behave import given, when, then, step @step('I log debug {num} times') def log_output(context, num): for i in xrange(int(num)): logging.debug('Some debug logging') """ And a file named "features/issueTBD_example.feature" with: """ Feature: Logging should not be output unless there is a failure Scenario: A passing test Given I log debug 5 times """ When I run "behave -f plain features/issueTBD_example.feature" Then it should pass And the command output should not contain: """ DEBUG:root:Some debug logging """