-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Documentation - Test Explorer #1302
Comments
Where did you read this comment? You do not need the xunit runner. You probably just haven't turned on the testing platform mode as detailed here: https://thomhurst.github.io/TUnit/docs/tutorial-basics/running-your-tests#visual-studio |
Testing platform did not work for me on its own. |
They're mixing xUnit and TUnit in one project, which is not supported, they will conflict with each other.
Did you restart Visual Studio after? Also, Coverlet is not supported for TUnit, you need to use: |
No, I did not as it was already selected in my settings. I initially got this error message but I see you are right if I now restart a new Visual Studio project with the normal packs then it works. ========== Starting test discovery ========== |
Glad it's working now |
For what it's worth, |
I followed the Tutorial Basics and immediately hit my first obstacle.
Test explorer in Visual Studio is not working and that is a show stopper for me. After searching online I eventually found a comment that the xunit template can be used with tunit and then the test explorer work again.
with project file as follows:
![image](https://private-user-images.githubusercontent.com/5297255/390859477-145c1553-85fe-4991-924a-60f2ae8ac826.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTk0MDAsIm5iZiI6MTczOTU1OTEwMCwicGF0aCI6Ii81Mjk3MjU1LzM5MDg1OTQ3Ny0xNDVjMTU1My04NWZlLTQ5OTEtOTI0YS02MGYyYWU4YWM4MjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTg1MTQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzM1NjdlYzQyYWY2ODgwNGNhNTM4YzNhZTE0MTU5NTY0MTEzNzU1NjBiNzlmNmVjNjAxMjRmMDhiMWYyOWJiYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7_u4l86b_JueaihY_3h1S5PfxsuZrjQ-7CUsjhQjWPc)
Would be great if you guys include this test explorer setup screen with the Visual Studio settings screenshot in the basics tutorial as I think a lot of people like me will be looking for this as that is what we are accustomed to using inside visual studio.
The text was updated successfully, but these errors were encountered: