-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CI Build should run UnitTests #277
Comments
Definitely! I didn't do it so far because we were using a CI plan with a limited amount of minutes, but now that this repo use a CI plan with unlimited minutes and that we have more contributors, I agree the CI should run the tests! |
@veler I can take this one :) |
Hello, an update: I'm using @veler branch, the .yml files seemed to be correct so I tried to run .\vstest.console.exe using ...\DevToys.Tests.build.appxrecipe file. It failed (something similar to this vstest issue):
That's probably the reason the build has failed. |
For me, when I build with Release configuration, the unit tests fail for some reason. However, if I build with Debug configuration, the unit tests can be executed. Might worth a try setting the Debug configuration in the CI. |
Perhaps it's acceptable to run unit tests only in Debug configuration? That would require the CI to build in Debug and Release mode, but it should be fine. Debug build is quite fast compared to Release. @rlm96 , would you like to try that? |
@veler - The failure explained in my previous comment was with Debug configuration. @astegi-dev - Did all your test finished succesfully with Debug configuration using vstest.exe? We can try to use the Debug config in the pipeline but as it is failing in our locals I'm not sure it will fix the pipeline build |
Ah, makes sense! Let's try to make it work on the local machine first before trying in the CI then. |
Btw, also tried to launch vstest using the build with Release config and got the same error:
Probably those errors (Debug and Release) may be related, thoughts? |
@astegi-dev Indeed, so I think what is making the tests fail are MSTest.TestAdapter and MSTest.TestFramework references. I updated only both packages to 2.2.8 version and the tests passed. @veler should we update those dependencies and then try again to build in Azure DevOps (with Debug config, I also tried with Release and still failing as mentioned by @astegi-dev)? |
That's interesting! Thank you for finding this out! Yes, definitely, let's try this out. 😊 |
Thank you so much @astegi-dev and @rlm96 ! It works great now 😁😁😁 |
What's the Problem?
The automated build does not run the Unit Tests.
Solution/Idea
Change the Azure Pipelines to automaticly run the Unit Tests on every build.
Alternatives
(remove the tests ;))
Priorities
DevToys Version
No response
Comments
No response
The text was updated successfully, but these errors were encountered: