dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

xUnit converter doesn't work for me #246

Open SuperJMN opened 8 years ago

SuperJMN commented 8 years ago

I've used the tool over a .csproj project and nothing happened. I haven't found any documentation about how to use it. Could you please upload a mini how-to to teach us?

Thanks!

tiesmaster commented 8 years ago

Probably you're missing the MSTestNamespaces.txt file in the output directory, 6eb6cc3 in PR #233 fixed that for me, but unfortunately that PR has not been merged yet :(

When I ran the converter without that patch, I think got warnings in the console, and that patch made it go away. Try that first.

Next, if your codebase contains TestInitialize, and TestCleanup attributes, then you might be interested in my dev branch where I've added support to convert those to the appropriate xUnit equivalents. It's here.