You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my stepDefinitions I have tried to use rich for writing out to terminal with color. And I experienced Behave is working differently when I run it with --wip.
In a steps.py file add from rich import print as rprint and then in a step definition add rprint('[italic red]Hello[/italic red] World!')
Running Behave with --wip will show the red italic "Hello", but running without --wip will not...
I find this to be a bug...
The text was updated successfully, but these errors were encountered:
The --wip changes a number of internal configurations if this option is enabled.
For example, it disables the stdout-capture, etc.
Normally, output from steps is captured and only shown if the step fails.
Try running behave --no-capture -f plain ... and you should see printed output.
OTHERWISE:
Provide and use your own formatter class that always shows captured-output.
In my stepDefinitions I have tried to use rich for writing out to terminal with color. And I experienced Behave is working differently when I run it with --wip.
In a steps.py file add
from rich import print as rprint
and then in a step definition addrprint('[italic red]Hello[/italic red] World!')
Running Behave with --wip will show the red italic "Hello", but running without --wip will not...
I find this to be a bug...
The text was updated successfully, but these errors were encountered: