'How do I Integrate TestRail with my Pytest test cases?

I have my automation test cases written in pytest. The Automation Scripts are in my Local and in Git as well. I just signed up for TestRail & I'm not sure about how to map my pytest test cases with TestRail testcases.

I'm expecting the Reports to be Generated in TestRail whenever my I run pytest Automation Scripts.

Please help...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source