Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexdlaird/air-quality-bot-e2e
E2E tests for the Air Quality Bot
https://github.com/alexdlaird/air-quality-bot-e2e
airquality aws-lambda bot e2e education python twilio twilio-sms
Last synced: 23 days ago
JSON representation
E2E tests for the Air Quality Bot
- Host: GitHub
- URL: https://github.com/alexdlaird/air-quality-bot-e2e
- Owner: alexdlaird
- License: mit
- Created: 2018-12-09T16:30:29.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T18:18:28.000Z (2 months ago)
- Last Synced: 2024-12-10T22:38:13.534Z (27 days ago)
- Topics: airquality, aws-lambda, bot, e2e, education, python, twilio, twilio-sms
- Language: Python
- Homepage: https://github.com/alexdlaird/air-quality-bot
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Python Versions](https://img.shields.io/badge/python-%203.10%20|%203.11%20-blue)
# Air Quality Bot E2E Tests
The [Air Quality Bot](https://github.com/alexdlaird/air-quality-bot) is
generally available by texting a zip code (and optionally the word "map") to
(415) 212-4229. This project runs end-to-end tests against the bot to ensure it
is up and responding properly.## Running Locally
Run `make install`, then update the values in `.env` to reflect your account's
values. Ideally, E2E tests should run from against a different Twilio account
than the bot itself.To run the tests, simply execute:
```sh
make test
```## CI Build
For the E2E tests to run in a CI system, simply add the environment variables found
in `.env` to the configuration for the CI build. In the CI system, you can also
set these E2E tests to run based on a cron schedule.In addition to running the E2E tests manually or on a schedule, you can trigger
them to run after each deploy. To do this, simply add the following variables to
your `.env` file in the [Air Quality Bot](https://github.com/alexdlaird/air-quality-bot/blob/main/.env.example)
repository. If they are set, E2E tests will automatically run after the
`./deploy.sh` script is executed successfully.