-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to verify response from lambda_invoke
#72
Comments
Going off of the tests in the project itself (see: test/integ/lambda_invoke_test.js), lambda_invoke can be used in integration tests by spawning a grunt subprocess to run the desired target, then assert that console output matches some expectation. Shouldn't be terribly difficult to add an "expected_response" option though. |
What use case did you have in mind? For a unit test it seems simpler to just call the functions you want to test directly from a testing framework of your choice. For an integration test I think you'd want to actually upload it to Lambda and run it seeing as there's no guarantees that this grunt plugin will replicate the Lambda environment accurately. I primarily see |
I think it would be beneficial to use lambda_invoke to verify that |
Provides a function to invoke lambda with a event.json, but doesn't provide a facility to verify the response from the function. What is the purpose of this
lambda_invoke
without verification?The text was updated successfully, but these errors were encountered: