Build/Test Issues

using dotnet secrets in tests fails

Started by colombod on 1,385 views

I have setup secrets management and while other runners can load the secrets ncrunch is not.
I used the manage secrets option in vs to create the secret store and when i run test with vs or reshaprer is all fine.
Hi, thanks for sharing this issue.

NCrunch itself is just a console application. It may be worth trying to build your own console application and loading the secrets from there, to see if there is a difference in how it works.

NCrunch has no integration with dotnet secrets, and I confess that I have no experience in working with it. Is it perhaps possible that the system is sensitive to the directory your code is run from? NCrunch will run your tests from a separate workspace which might affect this.

Post a reply

Log in to reply.