Skip to content
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

Expecto in VS 2019 test explorer window #401

Open
Evangelink opened this issue Nov 9, 2020 · 6 comments
Open

Expecto in VS 2019 test explorer window #401

Evangelink opened this issue Nov 9, 2020 · 6 comments
Labels
external-dependency Things that change under our feet. question

Comments

@Evangelink
Copy link

Hi there,

I guess most people have dropped VS but I am curious to know if someone knows how to integrate expecto tests in VS Test Explorer window. The readme recommends to use Expecto.VisualStudio.TestAdapter which appears to be deprecated and the YoloDev.Expecto.TestSdk replacement does not seem to be working.

@jackfoxy
Copy link
Contributor

jackfoxy commented Nov 9, 2020

I use YoloDev.Expecto.TestSdk
it works

@inosik
Copy link
Contributor

inosik commented Nov 10, 2020

You might need to install the Microsoft.NET.Test.Sdk package as well.

@Evangelink
Copy link
Author

I still can't see it but it does work when using a simple project as test. I will post a repro (or close the ticket) when I will figure out what's wrong with my main solution.

@inosik
Copy link
Contributor

inosik commented Nov 11, 2020

What is the target framework of your test project? I vaguely remember that projects targetting .NET Framework didn't work when I tried to use dotnet test and the VS test explorer.

@Evangelink
Copy link
Author

My main project is on net48 because of some third-party, I have seen that Yolo was requiring netcoreapp2.1+ so I have tried to have one of the test project (not needing the third-party reference) to target netcoreapp3.1 but without success.

@haf haf added question external-dependency Things that change under our feet. labels Nov 11, 2020
@xperiandri
Copy link

Work perfect for me in VS 2022

    <!-- Wildcard does not work for Microsoft.NET.Test.Sdk,
    tests are not recognized by VS Test Explorer because version does not resolve -->
    <PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.6.0" />
    <PackageReference Update="YoloDev.Expecto.TestSdk" Version="0.*" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-dependency Things that change under our feet. question
Projects
None yet
Development

No branches or pull requests

5 participants