On Tue, Nov 25, 2014 at 1:46 AM, Paolo Bizzarri <
pib...@gmail.com> wrote:
> Debug option was fine and nice.
>
> I am trying to figure out if there is an API that I can access from a test,
> to report the line where the breakpoint was set when we had a failure.
>
> I would love something along the lines:
>
> "Failed assertion XXX: method yyyy had breakpoint at line ZZZ".
Hi Paolo,
I'm afraid there isn't anything besides the debug output.
I would hope that the debug output would be enough to diagnose any
problem. I would assume that when a test failed, the developer is
going to have to look at the diagnostic output to see what went wrong.
We could provide an API that would get hold of that diagnostic output,
but is there anything to do with it besides print it out?
Also, the test framework doesn't know when something went wrong. If
you look at the example code in the Tutorial (See Tutorial.html in the
docs directory) it is only when the assertion failed in the
@ThreadedAfter method that we know there was a problem. The framework
itslef doesn't know that there was a race condition inside the code
that led to a test failure.
I suppose we could always record the debug output, and then provide an
API for accessing that if something goes wrong...
Alasdair