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-teamcityYou can specify the formatter directly in the command line using the -f argument:
behave -f behave_teamcity:TeamcityFormatteror
behave --format behave_teamcity:TeamcityFormatterYou can also register the formatter to be available through a simple name:
# -- FILE: behave.ini
[behave.formatters]
teamcity = behave_teamcity:TeamcityFormatterand the use it like:
behave --f teamcity