Tests are currently just a Python script that runs a few common use cases and checks the deployment by using the reqeusts library against the deployment location. This requires the following prerequisites:
- You have Python3 and pip installed
- You have npm and node installed
- You have the Serverless Framework setup globally
- You're using a unixy OS
After you install python3 you can run the following commands within the test
directory:
- python3 -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- You will need to clone the repository and then switch to the branch for the PR in question
- When on the PR branch (with all the new goodies that might break something) you can run the
test/automated_tests.py
file with python3 or just runnpm test
If the tests run at all without seeing Serverless Framework errors than you should have feedback as to if the tests pass from the results of npm test
.