Skip to content

Commit

Permalink
Turning off showing expects by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvrbanac committed Sep 8, 2014
1 parent a80cf06 commit 1ba0462
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions specter/reporting/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self, output_docstrings=False, use_color=True):
self.failed_tests = 0
self.incomplete_tests = 0
self.output_docstrings = output_docstrings
self.show_all = False

def get_name(self):
return 'Simple BDD Serial console reporter'
Expand All @@ -32,6 +33,8 @@ def add_arguments(self, argparser):
def process_arguments(self, args):
if args.no_color:
self.use_color = False
if args.show_all_expects:
self.show_all = True

def get_test_case_status(self, test_case, name):
status = TestStatus.FAIL
Expand Down Expand Up @@ -86,8 +89,8 @@ def output_test_case_result(self, test_case, level):
for line in test_case.error:
self.output(line, level+2, TestStatus.FAIL)

#if status == TestStatus.FAIL:
print_expects(test_case, level, self.use_color)
if status == TestStatus.FAIL or self.show_all:
print_expects(test_case, level, self.use_color)

def subscribe_to_spec(self, spec):
spec.add_listener(TestEvent.COMPLETE, self.test_complete)
Expand Down

0 comments on commit 1ba0462

Please sign in to comment.