Replies: 2 comments
-
So, you propose to measure the relevance of pseudo-tested methods using their distance to the test cases in the call graph. This is something we have been discussing for a while. Technically, I don't think it is possible to get this information in the scope that Descartes handles as a plugin for PIT. We do have another tool, Reneri that works with this information, the distance to the tests, to generate the suggestions for improvement. This tool is still a prototype, but we plan to develop it further. This type of analysis is better suited for an external tool, like Reneri, than Descartes. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply and the information @oscarlvp . Cool about Reneri. |
Beta Was this translation helpful? Give feedback.
-
Right now pseudo tested tests are reported whether the method that is pseudo tested is the direct method called by the test or if it's an indirect method called by a method called by the test.
In most cases, indirect pseudo tested methods are not a problem. It's just that the test writer didn't want to assert the indirectly-called method.
OTOH if Descartes notices a pseudo tested method that is directly called by the test then you can be sure it's a real problem that needs to be fixed (since it means the test is not testing anything).
I guess the hard part is to find out the real tested methods from the test.
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions