You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests may behave differently in Release configuration #326
I've noticed that some tests which fail in Debug configuration no longer fail in our CI pipeline as the tests in the pipeline are running in Release configuration. Code optimizations applied in release config can lead to validations not properly working anymore.
I'm aware that this isn't necessarily ArchUnit.NET's fault, but it's a problem one can easily run into without noticing for a long time, making the tests less useful.
Hi @timbussmann, thank you for your example repository. Yes, it is known that some rules may not work exactly the same in debug and release. I've created a pull request to include an example similar to yours in the example project and update the documentation.
Activity
alexanderlinne commentedon Mar 3, 2025
Hi @timbussmann, thank you for your example repository. Yes, it is known that some rules may not work exactly the same in debug and release. I've created a pull request to include an example similar to yours in the example project and update the documentation.