I\'m working in a project that recently switched to the py.test unittest framework. I was used to call my tests from Eclipse, so that I can use the debugger (e.g. placing br
It seems that now (py.test version 2.0+) someone can also do this :
import pytest pytest.main('-x {0}'.format(argument)) # Or # pytest.main(['-x', 'argument'])
Ref : https://pytest.org/latest/usage.html#calling-pytest-from-python-code