Test optimized or debug builds? #2589
-
Hi, Google couldn't find what I was looking for so I figure nobody has asked the question before. Should I compile my SUT and test assemblies using compiler optimizations, or in other words I imagine it depends on the environment (command line vs. UI test runner, local machine vs. CI server). I'm fairly certain I've seen CI workflows that use a build matrix to test multiple configs. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For CI builds, we always test |
Beta Was this translation helpful? Give feedback.
For CI builds, we always test
Release
. While developing, I usually testDebug
(so that I can easily debug the test as needed), but the command line build script that we use (that I always run before pushing things up) mimics the CI build behavior, so it will run tests inRelease
for me locally as well.