Open schmitch opened 7 months ago
@schmitch Sorry for the very, very slow response. In your tests, try OaktonEnvironment.AutoStart = true;
before bootstrapping
@jeremydmiller This worked for me, but the property is (now) called OaktonEnvironment.AutoStartHost
.
Thanks!
hello, i'm not sure if that counts as a bug/issue, so feel free to close it. but i stumbled upon it while integrating oakton (we use martendb and I really really like how oakton makes it easy to add one of commands)
so anyway we use vstest (dotnet test) and xunit to run unit tests: https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-8.0 however when using them while also using oakton some test fails, because we do something like that:
however somehow it will than append that as args when running the program á la
dotnet run -- --Sentry=
this is something we have no control of so the test of course will fail.at the moment we "fixed" it somewhat by using it like that:
but that feels a little bit less integrated so I wondered if there is a better solution?
I also removed both settings and it fails with another one