简体   繁体   中英

Can't find Behave's configuration file

I'm creating automated test scripts using the Python behave framework. I wanted to edit my behave configuration file ( behave.ini ), but I can't find it.

Where is the file located? Do I need to create the file myself in the home directory?

Behave has an excellent and complete documentation, I recommend you always check there first. Now, to answer your question, here's the documentation for the configuration files

Please follow the steps to add a customize configuration file for default properties

  1. Create behave.ini file and features file at the same level

在此处输入图片说明

  1. set properties in this file, which you want to run default, for example i have set default_tags=@defaulttag

在此处输入图片说明

  1. Now when i run the behave command, then it execute only scenario that has a tag @defaulttag

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM