From 5a22dae175bf1e1b5cbade1977ca01bb31184cb6 Mon Sep 17 00:00:00 2001 From: Colm O'Connor Date: Sat, 1 Aug 2015 17:30:24 +0800 Subject: [PATCH] Updated requirements.apt and README on how to run tests. --- {{cookiecutter.repo_name}}/README.rst | 20 +++++++++++++++++++- {{cookiecutter.repo_name}}/requirements.apt | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/README.rst b/{{cookiecutter.repo_name}}/README.rst index 786232f5d..ecb5f42b2 100644 --- a/{{cookiecutter.repo_name}}/README.rst +++ b/{{cookiecutter.repo_name}}/README.rst @@ -152,8 +152,26 @@ The email server listens on 127.0.0.1:1025 It's time to write the code!!! +Running end to end integration tests +------------------------------------ + +To run the tests, enter the {{cookiecutter.repo_name}}/tests directory and run the following commands:: + + $ hitch init + +Then run the stub test:: + + $ hitch test stub.test + +This will download and compile python, postgres and redis and install all python requirements so the first time it runs it may take a while. + +Subsequent test runs will be much quicker. + +The testing framework runs Django, Celery (if enabled), Postgres, HitchSMTP (a mock SMTP server), Firefox/Selenium and Redis. + + Deployment ------------- +---------- It is possible to deploy to Heroku or to your own server by using Dokku, an open source Heroku clone. diff --git a/{{cookiecutter.repo_name}}/requirements.apt b/{{cookiecutter.repo_name}}/requirements.apt index 46cfaac2d..bbbaa3c97 100644 --- a/{{cookiecutter.repo_name}}/requirements.apt +++ b/{{cookiecutter.repo_name}}/requirements.apt @@ -22,3 +22,23 @@ libwebp-dev ##django-extensions graphviz-dev + +##hitch +python-setuptools +python3-dev +python-virtualenv +python-pip +firefox +automake +libtool +libreadline6 +libreadline6-dev +libreadline-dev +libsqlite3-dev +libxml2 +libxml2-dev +libssl-dev +libbz2-dev +wget +curl +llvm