Can we have robot framework like report in pytest?

I am working on Pytest, but result reporting in RF are far better than pytest. Can we implement RF like report structure in Pytest? So after running Pytest automation i will get report like RF?

Hi Swapnil,

You can run Pytest from within robot framework, and as you will see in the thread linked below if you use a python wrapper function to call your Pytest functions you can then use the robot framework python API’s to return the test results back to a robot framework result

It’s not really a recommended solution but it may give you what you want.

Other than that I don’t know, I don’t use pytest.

Hope that helps,

Dave.

1 Like

Thanks for reply Dave.
I tried that but didnt work out for me.
I wish we can have any plugin or method which we can directly use to genrate reports like RF.

i made a pytest plugin for this: GitHub - DetachHead/pytest-robotframework: a pytest plugin that can run both python and robotframework tests while generating robot reports for them

2 Likes