serverless-test-plugin
serverless-test-plugin copied to clipboard
how does python code get tested
hmm, no way to test python code?
from serverless-test-plugin/index.js
if (functionData.runtime === "nodejs") {
...
....
else {
SCli.log("DEBUG Skipping " + functionData._config.sPath);
functionTestSuite.setSkipped(true);
}
:(
I haven't used Python with Lambda at all yet, so I really have no idea how things would work. I believe this can be added easily with the latest version of this plugin and serverless 0.5.x -- it's probably as simple as adding the python runtime to the check in index.js
. The function is executed through serverless which takes care of all the environment settings.
If you have the ability to test this and provide a pull request, it would be highly appreciated.