python - How to run a feature file using Pycharm Community -
i have installed behave 1.2.5 , pycharm community. when right click feature file not see option called run feature file.
how set run configuration
as others have stated, pycharm community edition not going when comes behave support. can create testallfeatures.py content:
if __name__ == '__main__': behave import __main__ behave_executable behave_executable.main(none) you usual "run" context menu file. let's call executor don't know if there wide-spread term this. equivalent of executing behave in directory. can play around tags , few similar executors (with args!=none parameters, of course) call different sets of scenarios.
an alternative create "run configuration(s)" in pycharm call behave cli. advantage of above outlined executor approach can run executors when not using pycharm, including ci environment.

Comments
Post a Comment