2

I must develop some tests for my AWS Lambda Function written in c# using .net core 3.1.

The lambda uses several environment variables that I have written on the launchsettings.json file for the local test.

I don't know why when running the application and using the "Mock Lambda test tool" all the values are retrieved and it works but when running the test from Test Explorer I have seen

var variable = Environment.GetEnvironmentVariable("variableName");

is equal to null.

How can I let the lambda retrieve these values during the integration tests?

Thanks to everyone

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.