Skip to content
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

Testing multiple events together #636

Open
dominusmi opened this issue Apr 30, 2021 · 2 comments
Open

Testing multiple events together #636

dominusmi opened this issue Apr 30, 2021 · 2 comments

Comments

@dominusmi
Copy link

dominusmi commented Apr 30, 2021

I was thinking that it would be very useful to be able to test multiple events in a row instead of just one, like a test battery.
Of course I could just write a simply script on my local machine, but it sounds like an interesting feature to add to the library.

In order to keep the events separate (so that you can also unit test), I was thinking of a command to invoke all events in a directory for example. I'd even say that it should be the default behaviour of lambda invoke, since having only one event.json isn't a very useful feature. In this case, lambda init would create an events directory, with inside a single default event.json, in order to make the transition as clean as possible for future users.

lambda invoke would then by default run all the events sequentially, and would still accept the filename parameter to only run one event

I'd be open to make a PR for this when I get the time if we can agree on the structure

@bot2x
Copy link

bot2x commented Jul 27, 2022

Hey. This is a really good suggestion as a feature. For most lambda, I have multiple copies of event.json renamed with numbers attached.

@bot2x
Copy link

bot2x commented Jul 27, 2022

@nficano Thoughts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants