I have a django web application and would like to run headless tests using:
https://github.com/dobarkod/django-casper

I am trying to implement an automatic/CI workflow like the one below:

1) clone latest version of my django web application
2) Install Django (e.g. in a python virtual environment)
3) Start django web server hosting my django web app
4) Run casper headless tests
5) Generate test report
6) Shutdown/remove django webserver/web application.

What are the recommended workflow for the above; automatically install, 
start, test and shutdown a django web application/web server?

I would like to avoid apache configuration if possible. 

For now I use the below script that covers bullet 1-2 above in a jenkins 
job:

  #!/bin/bash

  STAGING_DIR="staging"
  rm -Rf $STAGING_DIR
  mkdir $STAGING_DIR
  cd $STAGING_DIR

  git clone [git-url] .
  virtualenv --no-site-packages virtual_django
  source virtual_django/bin/activate
  pip install django

  #Hangs :-(
  python manage.py runserver 0.0.0.0:8000

  # ToDo: Run casperjs tests

  # ToDo: Generate test report

  # ToDo: Shutdown/remove django web server/web application



But it just hangs when it get to:

 python manage.py runserver 0.0.0.0:8000


it works fine from a plain bash terminal though.

I assume that others have automated the above workflow so could be great 
with some suggestions for this.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1c55324a-ccee-4c32-b697-7a9137824892%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to