Open flyudvik opened 7 years ago
It seems pycharm has some kind if conflict with --with-coverage
option, commenting that line fixed the problem for me
Ran into this, adding my solution:
import sys
RUNNING_WITH_DEBUGGER = True if sys.gettrace() is not None else False
NOSE_ARGS = [
'--with-xunit',
'--xunit-file=nosetests.xml',
]
if not RUNNING_WITH_DEBUGGER:
NOSE_ARGS.extend([
'--cover-erase',
'--with-xcoverage',
'--xcoverage-file=coverage.xml',
'--cover-package=testDjangoApp',
])
I can not run debugger in Pycharm with default configuration. test runner just ignores breakpoints.
I'm using following configuration
Added
-s
option by following answer on this question on stackoverflowWhat am I doing wrong?