-
Notifications
You must be signed in to change notification settings - Fork 106
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
TFS Impact Tests are not working with NUnit tests #594
Comments
@ADBrinkman I assume this can be related to #560 and possibly also #519 . If you turn on NUnit Verbosity to full (= 5), you should see an info saying it is turned on, and the process will as an effect run slower. You can then also enable the Dump settings and see if they do come out in the right sequence during execution. What we have seen earlier was that it did, but there absolutely seems to be something wrong going on here, so we're very interested to see where this leads. |
Thanks, we have enabled the extra logging. The dump logs look ok to me, but it's not in the format shown in #560. Build Log is here: Please let me know if there is other information we should gather |
@rprouse I believe it is NUnit itself that does this. We have other issues pointing to the same, and there is nothing in the adapter afaic see that would cause this. Can you have a look? |
@ADBrinkman It doesn't look like the logs you attached show the problem. In that test run
I'd like to see the discovery for just changes to one file so that we can see the behavior. |
I believe I was incorrect and adding the CollectDataForEachTestSeparately to the runsettings does resolve the impact test analysis. The problem following this change was actually in my testing - apologies! Thanks for looking in to this @OsirisTerje, @rprouse |
Very good to hear! Thanks @ADBrinkman ! |
Issue description
When configuring the VS Test task to "Run only impacted Tests", code changes are not picked up by any of the affected NUnit tests. The tests are correctly discovered with the NUnit Adapter, but the TestSelector GetImpactedTests does not return any impacted tests.
New tests or failed tests are correctly picked up and run, just not tests for code changes.
If I use MSTest tests instead, these work as expected.
Initially I raised this issue on the Azure pipelines forum (see microsoft/azure-pipelines-tasks#9406 for full thread).
From this I understand TestImpact relies on the events to be in synchronous manner.
We tried running the VS Test task with a runsettings file specifying the CollectDataForEachTestSeparately which had the same problem:
<RunConfiguration>
<CollectDataForEachTestSeparately>true</CollectDataForEachTestSeparately>
</RunConfiguration>
It was suggested that CollectDataForEachTestSeparately does not work with OutOfProc data collectors, would you be able to confirm whether this is the case?
And if it is, is there a way to enable the events to be fired synchronously when using an OutOfProc Data Collector so that it will work with Test Impact Analysis?
Task logs
Full build debug logs are here:
Build logs - Impact tests not working.zip
Environment
The text was updated successfully, but these errors were encountered: