A formatter for behave to report test results to TeamCity via service messages.
behave | TeamCity |
---|---|
Feature start | Test suite start |
Feature end | Test suite finished |
Scenario start | Test start |
Scenario end | Test finished |
Scenario failed | Test failed |
Skipped Scenario | Ignored test |
pip install behave-teamcity
You can specify the formatter directly in the command line using the -f argument:
behave -f behave_teamcity:TeamcityFormatter
or
behave --format behave_teamcity:TeamcityFormatter
You can also register the formatter to be available through a simple name:
# -- FILE: behave.ini
[behave.formatters]
teamcity = behave_teamcity:TeamcityFormatter
and the use it like:
behave --f teamcity