Skip to content

Commit

Permalink
Log test case and test method separately
Browse files Browse the repository at this point in the history
  • Loading branch information
thejunglejane committed Mar 1, 2018
1 parent 93df3e9 commit 7eef3cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions marbles/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ def _log_assertion(self, case, assertion, args, kwargs, msg, advice,
now = datetime.datetime.now()
locals_, module, filename, lineno = _stack.get_stack_info()
passed = exc_info[0] is None

doc = {
'case': str(case),
'test_case': case.__class__.__name__,
'test_method': case._testMethodName,
'module': module,
'file': filename,
'line': lineno,
Expand Down

0 comments on commit 7eef3cc

Please sign in to comment.