dcppc / uncle-archie

Uncle Archie is a home-brewed continuous integration server for pull request checks and push-to-deploy functionality. https://pages.charlesreid1.com/uncle-archie
Other
1 stars 0 forks source link

Write Uncle Archie tests #28

Closed charlesreid1 closed 5 years ago

charlesreid1 commented 6 years ago

Once we have Uncle Archie bundled as a python package (#27), we can move on to writing tests.

Tests will consist of a flask webapp and a utility to send webhook payloads.

To run manually, you would run in two windows.

To run in a sensible automated manner, use docker-compose and define a pod with two containers (one with all of Uncle Archie's requirements installed, one just lightweight python). One container will bind mount the current directory and run setup.py build install. The other will bind mount the current directory and run python requests or something.

Flask provides a way to run unit tests - the flask app can provide the user with a test client, which can be used to interact with the webapp from a single script (no two-window or concurrent threads business is necessary).

This will be closed by #29

charlesreid1 commented 5 years ago

Update: testing is happening concurrently with conversion of Uncle Archie into a python package.

charlesreid1 commented 5 years ago

basic tests are finished.

dcppc tests are not done for all dcppc tasks, but not all dcppc tasks are implemented in the library yet.