serverless-test-plugin icon indicating copy to clipboard operation
serverless-test-plugin copied to clipboard

how does python code get tested

Open connaryscott opened this issue 8 years ago • 2 comments

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);
                                        }

connaryscott avatar Mar 28 '16 17:03 connaryscott

:(

mfulleratlassian avatar Apr 12 '16 06:04 mfulleratlassian

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.

arabold avatar Apr 26 '16 18:04 arabold