Sha256: 0a22e45375cee62a9a5e1005bd1bdf311105ba0ade0422e0e124f9c0ce563669
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
============== Using *behave* ============== The command-line tool *behave* has a bunch of `command-line arguments`_ and is also configurable using `configuration files`_. Values defined in the configuration files are used as defaults which the command-line arguments may override. Command-Line Arguments ====================== You may see the same information presented below at any time using ``behave -h``. {cmdline} Tag Expression -------------- {tag_expression} Configuration Files =================== Configuration files for *behave* are called either ".behaverc", "behave.ini" or "setup.cfg" (your preference) and are located in one of three places: 1. the current working directory (good for per-project settings), 2. your home directory ($HOME), or 3. on Windows, in the %APPDATA% directory. If you are wondering where *behave* is getting its configuration defaults from you can use the "-v" command-line argument and it'll tell you. Configuration files **must** start with the label "[behave]" and are formatted in the Windows INI style, for example: .. code-block:: ini [behave] format=plain logging_clear_handlers=yes logging_filter=-suds Configuration Parameter Types ----------------------------- The following types are supported (and used): **text** This just assigns whatever text you supply to the configuration setting. **bool** This assigns a boolean value to the configuration setting. The text describes the functionality when the value is true. True values are "1", "yes", "true", and "on". False values are "0", "no", "false", and "off". **sequence<text>** These fields accept one or more values on new lines, for example a tag expression might look like: .. code-block:: ini tags=@foo,~@bar @zap which is the equivalent of the command-line usage:: --tags @foo,~@bar --tags @zap Configuration Parameters ----------------------------- {config}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
busser-behave-0.1.3 | vendor/behave/docs/behave.rst-template |