-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUnit Engine - Missing TestEvent with overall testinformation after Update from 3.10 to 3.11.1 #822
Comments
@CharliePoole - do you think this could be related to #603? Any thoughts on this? |
@ChrisMaddock Could be... I'll take a look. @DrHardReset Can you provide a simple example that reproduces this? Also, can you check to see if the problem only occurs when running an NUnit project? The latter could be significant because of #382 |
@CharliePoole This would be an example that produces the problem, both with single assembly and with NUnit project.
Find attached a prepared C# test project with captured events for 3.10 and 3.11.1. @ChrisMaddock transferred this issue into nunit-console. I'm facing the problem while using nunit-gui and am not very familiar with (the output of) the console. So I'm not sure if the problem occurs with the console, too. |
Hi @DrHardReset - this repository contains two NUnit components: the NUnit Console and the NUnit Engine. The repository name doesn't make that clear, I'm afraid! Your problem will most likely be with the engine, which is the central component used by both the GUI and the Console Runner. |
FYI both, I'm not planning to hold the v3.12 release for this issue to be investigated, but please let me know if something comes up which we think needs to be squeezed in quickly. 🙂 |
Hi, is there any progress regarding this issue? @ChrisMaddock @CharliePoole |
I worked around this issue by changing the
Now my listener can check if an environment/settings node exists in the |
@Snuxx As you know, the callbacks come from the framework. The point of the existing engine code, was that the callback was occurring twice, once for the final result and once for the progress event. I created the heuristics in In order to keep the console running correctly, it would be useful to know what - if anything - changed in the nunit 13.2 release. Are you able to see that? Since you say two test-suite events are generated, we are apparently still being called twice. Is the data the same in both cases? (It should not be) Why does the Your change is a good one for the framework release you are using, but the engine needs to continue working with all releases >= 3.0. For that reason, I'd rather see an improvement to |
I'm inclined to close this issue as being by design. All test-case and test-suite events received from the tests are intended to contain minimal information needed to identify the particular test, which is starting, ending or producing output. The final result from the assembly is held by the engine until the entire run, potentially containing multiple assemblies, is complete. It is conceivable for us to provide a way to get at the aggregate result for a suite within the event handler but we would need some motivating use case to spend time on it. Can you explain why using the final test-run result isn't satisfactory in your case? |
@DrHardReset @Snuxx For that reason, if this issue still presents a problem for you, it may be a good idea to reply to my earlier request for a motivating use-case for an enhancement, which could resolve it. Since there is nobody yet lined up to take over this project, the 3.16 release could conceivably be the last release for some time. |
@CharliePoole In the meantime I changed my resultwriter/eventlistener to parse all single incoming events. So for me this issue can be closed, as I am no longer relying on the aggregated results. |
I'm trying to update my testenvironment and painfully noticed a missing testevent.
I'm using my own resultwriter which implements ITestEventListener.OnTestEvent(string report).
With NUnit Engine 3.10 after each tested assembly the last Event the listener received was a test-suite report of type="Assembly" which contained all test results (TestSuiteResults and TestCaseResults).
With NUnit Engine 3.11.1 this Event is not showing up. Instead there is a new event "test-run" which contains all test results. This event is only showing up at the end of a testrun, not after each assembly.
The problem is, that my resultwriter is relying on the event of 1) as it shall process the result information after each tested assembly. My testenvironment is heavily using NUnitProject to test multiple assemblies at once (sequentially).
Is it expected behaviour that the final test-suite report after each assembly is not showing up any more?
events_3.10.txt
events_3.11.1.txt
The text was updated successfully, but these errors were encountered: