Skip to content

Commit

Permalink
Merge pull request #151 from GateGuru/feature/silence-filter-logging-…
Browse files Browse the repository at this point in the history
…option

Add KIF_SILENT_FILTERING environment variable to suppress logging output
  • Loading branch information
puls committed Dec 7, 2012
2 parents b7c77db + 66cd36e commit c773883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/KIFTestController.m
Expand Up @@ -531,6 +531,7 @@ - (void)_logDidStartScenario:(KIFTestScenario *)scenario;

- (void)_logDidSkipScenario:(KIFTestScenario *)scenario;
{
if ([[[[NSProcessInfo processInfo] environment] objectForKey:@"KIF_SILENT_FILTERING"] boolValue]) return; // Don't want filter skipping noise
KIFLogBlankLine();
KIFLogSeparator();
NSString *reason = (scenario.skippedByFilter ? @"filter doesn't match description" : @"only running previously-failed scenarios");
Expand Down

0 comments on commit c773883

Please sign in to comment.