Open RealyUniqueName opened 5 years ago
I realized that PlainTextReport
has a built-in Sys.exit()
in its complete
function. So I'm not sure if this is a valid issue because the API clearly wants me to handle this differently.
Well, yes.
You are expected to implement your own IReport
. But that's not very convenient when you just want to handle success/fail state or amount of failures.
My point is that you can't handle success/fail yourself anyway if the thing Sys.exit
s on you.
utest.Runner
has callback onComplete
which is called before the shutdown.
Looks like we indeed need this for https://github.com/HaxeFoundation/haxe/commit/6924babc1ceed3b3821d53669b1ac8474c8e370f
Currently, there is no way to access test results. Something like this is needed:
maybe as an addition to
utest.ui.common.IReport
Requested here:
I couldn't immediately find how to get the success state of the tests. (quote from https://github.com/HaxeFoundation/haxe/pull/7901#issue-257273666)