# Can we have robot framework like report in pytest?

**URL:** <https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961>\
**Category:** Robot Framework\
**Created:** [19 July 2023 12:27 UTC](https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961 "2023-07-19T12:27:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapyr8](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@swapyr8](https://forum.robotframework.org/u/swapyr8)\
**Post date:** [19 July 2023 12:27 UTC](https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961/1 "2023-07-19T12:27:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [19 July 2023 12:42 UTC](https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961/2 "2023-07-19T12:42:04Z")

</div>

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

> [@Merge pytest and jest report files with RF report files](https://forum.robotframework.org/t/merge-pytest-and-jest-report-files-with-rf-report-files/3542):
>
> Hello, we start pytest in a robot file. Is there a way to merge the pytest report files with RF report files? Or a way to pass the results to RF? Now it just shows if all tests are passed or failed but you can’t see the single pytest testcases separately. The same question about jest. Thanks in advanced for the help slight_smile

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.

---

<div class="post-metadata">

**Author:** ![swapyr8](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@swapyr8](https://forum.robotframework.org/u/swapyr8)\
**Post date:** [21 July 2023 09:12 UTC](https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961/5 "2023-07-21T09:12:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DetachHead](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/detachhead/32/3010_2.png) [@DetachHead](https://forum.robotframework.org/u/DetachHead)\
**Post date:** [16 September 2023 13:02 UTC](https://forum.robotframework.org/t/can-we-have-robot-framework-like-report-in-pytest/5961/6 "2023-09-16T13:02:17Z")

</div>

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](https://github.com/detachhead/pytest-robotframework)
