DevCom-IITB / instiapp-api

Django quasi-RESTful API for InstiApp!
https://insti.app
GNU Affero General Public License v3.0
22 stars 75 forks source link

Setting up automated testing #8

Closed pulsejet closed 6 years ago

pulsejet commented 6 years ago

wercker offers a free CI/CD service for private repos, so we can use it to automate testing. I've setup the same on my fork (check the README) and it runs the tests as expected.

@ydidwania you can set it up on this repo too (would've done it, but it needs admin rights). You will need to set the WERCKER_SOURCE_DIR environment variable to $WERCKER_ROOT/backend. I've already added the YAML which should work as expected.

ydidwania commented 6 years ago

We have not yet made any tests. Before adding automated testing, we should make a few of them..

pulsejet commented 6 years ago

Its still worthwhile, cause it checks the syntax, if all models are sane and if migrations are properly applied by default. So why wait?

pulsejet commented 6 years ago

Added a couple of test cases. Will add some more soon (hopefully) ...