I am trying to adapt the pytest tool so that it can be used in my testing environment, which requires that precise test report are produced and stored. The tests report are in xml format. So far I have succeeded in creating a new plugin which produces the xml I want, at one exception : I need to register in my xml report the passed assertion, with the associated code if possible. I couldn't find a way to do so. The only possibility approaching is to overload pytest_assertrepr_compare im py pytest plugin, but it is called only on assertion failure, not on passed assertion.
Any idea to do so ?
Thank for the help!
etienne