-
Notifications
You must be signed in to change notification settings - Fork 47
All test passed, but it displays "Overall Failed" #43
Comments
Very odd. It is working for me. It shows two tests. Are they simple enough to copy here so that I can try them? If you drill into the individual tests, is there any info in them that may shed some light? |
@rprouse I don't know how much of the runner code resembles our nunitlite code, but in the past such an error has generally indicated that there was a failure of one time startup rather than a test case. If you are saving the XML result, it should indicate what happened. |
I not sure how to get the xml output. Unfortunately the tests are for a library that I isn't public. The test themselves were pretty simple.
Today is seams random. Maybe 1 in 10 runs, with give me that show up as failed with no failed tests. I have also noted that the Overall Success or Fail mess seams to be missing letters depending on platform. See droid image above. |
It looks like your OneTimeSetup is failing occasionally. I will need to add functionality to surface those errors. As for the UI issues on some platforms, I am aware of those. I haven't tested and tweaked the UI on enough platforms yet. Thanks for the report... |
Entered #44 to track the UI truncation issues. |
Actually, I think it is the exception that you are throwing in your teardown that is causing the problem. |
I thought of that too. It show up as a test failure on the individual tests, with the stack trace and exception showing up in the test failed screen. |
It looks like if there is an exception in [OneTimeSetUp] or [SetUp] it Shows overall fail even if the tests succeed. The exceptions are hidden. I Don't see them in the application output, or in the application anywhere.
|
I can only repro this with a Repro below:
|
That's as expected if you are only reporting test cases. All the tests pass and are reported. Then OneTimeTearDown runs and throws an exception. The suite is reported as a failure but (I'm guessing) your runner does nothing with that report. The NUnit console runner historically did the same thing. We had to add code to specifically report a suite failure if the site was TearDown. Look at the console runner's event listener as an example. |
I see, thanks Charlie. We'll need to decide what we want that to look like for the xamarin runner. |
When I run my unit test it displays "Overall Failed" regardless of the tests status.
The text was updated successfully, but these errors were encountered: