Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

using dotnet secrets in tests fails
colombod
#1 Posted : 18 days ago
Rank: Newbie

Groups: Registered
Joined: 6/27/2022(UTC)
Posts: 3
Location: United Kingdom

Was thanked: 1 time(s) in 1 post(s)
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.
Remco
#2 Posted : 18 days ago
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,162

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download