Reputation: 33048
I'm on MonoTouch 6.0.4 and have implemented a Unit test using MonoTouch's NUnitLite.
If I execute a test and end it with an Assert()
I can see from the logs that the test executed successfully:
Tests run: 1 Passed: 0 Inconclusive: 0 Failed: 1 Ignored: 0
But in the UI, the test result is not reflected:
The test method:
[Test]
public void TestPing()
{
APIPingResult oRes = oManager.PingConnector.Ping(5);
Assert.True(oRes.Success);
}
Just a bug or am I missing something?
Upvotes: 1
Views: 141
Reputation: 43553
It's a known (I've noticed it before) bug.
The status is updated correctly when running all the tests, e.g. Run Everything, or all the test in a specific suite, e.g. Run all.
However when running a specific test the update is now done (actually I think it's just not refreshed). Note that the test result is still sent to the writer's output (e.g. Application Output or on the device console).
Update: Fixed in GIT (both 0.7 and master branches).
Upvotes: 1