-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Runnable xunit tests with Resharper #2793
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
Conversation
Visual Studio 2017 RTM and Resharper unit test runner are currently broken: https://youtrack.jetbrains.com/issue/RSRP-464233 This fix allows xunit tests to be runnable within Visual Studio by adding references to the following packages: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" /> A consequence of doing this is that Microsoft.NET.Test.Sdk defines a Main entry point which means that Tests project cannot define one. Main renamed to TestMain until this is resolved.
Mpdreamz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully this gets resolved fast, I also lost the ability to debug tests on rider in recent EAPs on Windows. I can run test fine from rider though.
| private static string OutputPath { get; } | ||
|
|
||
| public static void Main(string[] args) | ||
| public static void TestMain(string[] args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment why we do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
| <PackageReference Include="DiffPlex" Version="1.4.1" /> | ||
| <PackageReference Include="System.Reactive" Version="3.1.1" /> | ||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> | ||
| <!-- TODO only for Desktop CLR? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:Sad: 😢
Following PR review
* Runnable xunit tests with Resharper Visual Studio 2017 RTM and Resharper unit test runner are currently broken: https://youtrack.jetbrains.com/issue/RSRP-464233 This fix allows xunit tests to be runnable within Visual Studio by adding references to the following packages: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" /> A consequence of doing this is that Microsoft.NET.Test.Sdk defines a Main entry point which means that Tests project cannot define one. Main renamed to TestMain until this is resolved. * Add comment for Main method rename in Tests project Following PR review (cherry picked from commit 7d3dde8)
* Runnable xunit tests with Resharper Visual Studio 2017 RTM and Resharper unit test runner are currently broken: https://youtrack.jetbrains.com/issue/RSRP-464233 This fix allows xunit tests to be runnable within Visual Studio by adding references to the following packages: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" /> A consequence of doing this is that Microsoft.NET.Test.Sdk defines a Main entry point which means that Tests project cannot define one. Main renamed to TestMain until this is resolved. * Add comment for Main method rename in Tests project Following PR review (cherry picked from commit 7d3dde8)
* Runnable xunit tests with Resharper Visual Studio 2017 RTM and Resharper unit test runner are currently broken: https://youtrack.jetbrains.com/issue/RSRP-464233 This fix allows xunit tests to be runnable within Visual Studio by adding references to the following packages: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" /> A consequence of doing this is that Microsoft.NET.Test.Sdk defines a Main entry point which means that Tests project cannot define one. Main renamed to TestMain until this is resolved. * Add comment for Main method rename in Tests project Following PR review (cherry picked from commit 7d3dde8)
Visual Studio 2017 RTM and Resharper unit test runner are currently broken: https://youtrack.jetbrains.com/issue/RSRP-464233
This fix allows xunit tests to be runnable within Visual Studio by adding references to the following packages:
A consequence of doing this is that Microsoft.NET.Test.Sdk defines a Main entry point which means that Tests project cannot define one. Main renamed to TestMain until this is resolved.