Python: How to integrate myself into pytest?

I am building a Django application and rely heavily on pytest to discover and organize my unit and functional tests. However, I want to apply Behavior Driven with behave Development for future tests. Unfortunately, the behave test functions behave not automatically recognized by pytest .

How to integrate behave and its' tests in pytest detection, execution and reporting?

+7
python bdd python-behave
source share
1 answer

Pytest and behave two separate test runners.

There is a pytest plugin for testing behavior that also uses Gherkin as DSL, but the steps use syntax different from the behavior of behave, so I don’t think you can directly run the steps you created with it.

+4
source share

All Articles