Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging python-behave steps with Pycharm

I'm using Pycharm to write tests and running them with behave. I'm running the behave commands with cli. To write the features and scenarios i'm using Pycharm. How can i debug each step?

like image 448
Shizzle Avatar asked Aug 29 '16 08:08

Shizzle


1 Answers

You need Pycharm Professional to easily setup debuging. Just create run/debug configuration, choose behave framework, then specify feature files folder and behave params.

Screenshot of the valid configuration

Otherwise, if you doesn't have PyCharm Professional, you can create just basic python configuration, specify module behave and enter path to your feature folders in parameters.

Screenshot of the valid configuration

like image 144
rasklaad Avatar answered Sep 20 '22 20:09

rasklaad