-
Notifications
You must be signed in to change notification settings - Fork 266
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
Tests not found by TFS 2017 Builds #368
Comments
I had the same issue and the cause was that my csproj had multiple references to different versions of MSTest.TestFramework |
@ViIvanov : Can you provide more info on the VS version being used and also the test task logs if possible as it would help to narrow down the cause ? |
@cltshivash I have used Visual Studio 2017 Version 15.5 on a build machine. I`m sorry, I can not share a build log with you. RunTests task prints an error
I do not found any other tests-relates messages in a TFS log. |
@Vilvanov If you set build variable system.debug=true you will find more logs. You can remove sensitive data before sharing with us. |
@ViIvanov were you able to get past this? If not, can you check if the adapters are present along with the test binaries. If yes and you are still hitting this, can u share the logs with us as above? |
@ViIvanov can you please either provide us the logs with system.debug=true (After redacting any sensitive information). Also please ensure that the test adapter is present next to the test sources if not you will need to provide custom adapter path to the adapter dll to get this to work. Please refer to 286 for more info on how to set up a proper ci/cd |
I'm closing this issue due to no response and after having tried it out myself it works fine. The workaround in case the adapter dll does not get copied to the binaries directory is to provide custom adapter path to the location where the adapter dll is present. Please re-open if you follow the above mentioned steps and are still failing issues and please ensure you either provide the complete logs (sensitive data redacted) or a sample solution where this consistently repros along with the details of the build/release definition you are using. |
Description
I have upgraded my test projects to MSTest V2 from traditional MSTest. Locally all tests run successfully.
In the TFS Build I see message
Is NOTE from http://www.michaeltaylorp3.net/upgrading-from-mstest-to-mstest-v2/ still correct?
Is some workaround exists?
Steps to reproduce
I just have added (via NuGet Package Manager) two packages (see Environment) to my project and removed reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.
Expected behavior
Tests runs by TFS.
Actual behavior
Tests not found by TFS
Environment
TFS 2017 (Microsoft Visual Studio Team Foundation Server Version 15.105.25910.0)
The text was updated successfully, but these errors were encountered: