Skip to content

Right way to test Serverless Plugins? #9614

Answered by medikoo
ubaniabalogun asked this question in Q&A
Discussion options

You must be logged in to vote

I stumbled on the runServerless util. Should framework plugins be using this utility as well? Or is it purely for testing Serverless framework internals? If it is purely internal, is there an alternative that plugin developers should use
Thanks,

I'd highly recommend using runServerless util to test plugins, as it tests against full cycle, and it's the only reliable way to confirm all works as expected.

I believe it can be relatively easily used to test plugins, but please ask if you stumble on any issues

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@medikoo
Comment options

@medikoo
Comment options

@ubaniabalogun
Comment options

@medikoo
Comment options

@ubaniabalogun
Comment options

Answer selected by ubaniabalogun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants