Closed mu88 closed 2 years ago
I think be cool add a test cases. You can add to folder /src/dotnet/ReSharperPlugin.FluentAssertions.Tests/test/data/NUnitAssertMigrationQuickFixTests/
files:
PositiveCaseFalse.cs - file contains case for replace a code. You can see example
PositiveCaseFalse.cs.gold - file contains result after quickfix. You can see example
PositiveCaseIsFalse.cs - file contains case for replace a code. You can see example
PositiveCaseIsFalse.cs.gold - file contains result after quickfix. You can see example
etc
Honestly, I didn't really understand your test name pattern, but I hope that's what you're looking for :)
How can I execute the tests? When simply running them in Rider, each and every test fails with No build requested on commandline
.
If the tests can be run from the CLI, I'd like to setup a build pipeline as I did it already here
Honestly, I didn't really understand your test name pattern, but I hope that's what you're looking for :)
How can I execute the tests? When simply running them in Rider, each and every test fails with
No build requested on commandline
. If the tests can be run from the CLI, I'd like to setup a build pipeline as I did it already here
You got the test naming pattern right. I have all tests running correctly on Windows 11. Under Kubuntu 21.10, I could not run the tests they also fall. I think I misconfigured the environment, maybe we could help with this @matkoch
And did you have to install/configure something to run the tests or can you simply run dotnet test
on your machine and it works? I have never seen these gold
files before...
And did you have to install/configure something to run the tests or can you simply run
dotnet test
on your machine and it works?
On my Windows station i install only dotnet core 6 sdk
and all works fine. For linux environment i install Mono sdk
, dotnet core 6 sdk
but all tests failed.
I have never seen these
gold
files before...
*.gold
file - this expected result snapshot after quickfix
Ah, I forgot to update Plugin.props
, now it looks "better" - I'm getting a NuGet restore error, but that's probably because of the corporate proxy I'm behind - at least four tests are running now, I'll try the others later at home.
@inyutin-maxim is the code base in this PR fine for you so that @matkoch could do the merge?
@inyutin-maxim is the code base in this PR fine for you so that @matkoch could do the merge?
Yes, of course, it looks good to me
@inyutin-maxim Thank you for your amazing job! Due to your fundamentals, adding these simple assertions was super easy 👏🏻