Alex Rivera | Logout

How to use `pytest` from Python?

Asked 2010-07-27T11:41:30.877
26

I'm working in a project that recently switched to the pytest unittest framework. I was used to calling my tests from Eclipse, so that I can use the debugger (e.g. placing breakpoints to analyze how a test failure develops). Now this is no longer possible, since the only way to run the tests is via the command line blackbox.

Is there some way to use pytest from within Python, so that one is not forced to drop out of the IDE? The tests should of course not be run in a separate process.

Edit
Report

1 Answer

2

Maybe you could give a try to pycharm it has direct integration with py.test (I use it at work) and debugger runs perfectly.

answered 2012-08-31T01:56:36.557

Your Answer