I have enabled test coverage with no problem using the
Generate Test Coverage Files y
Instrument Program Flow con el
But the problem is, when you use XCode to run tests it ends up launching the simulator which launches your app. When that happens the output for the test coverage is not truly correct because it thinks certain parts of the code are touched because they are executed when the app launches, no because a test touched them.
Is there a better way to see what code was actually touched by a test?
So not really an answer to my question, but a somewhat "solution" that will at least get better coverage numbers can be found here: Ejecute pruebas lógicas en Xcode 4 sin iniciar el simulador
preguntado el 30 de julio de 12 a las 21:07