Commit 9a13c8b8 by Mark L. Chang

notes on lettuce testing

parent 306f0d05
## acceptance_testing
This fake django app is here to support acceptance testing using lettuce + selenium. Some documentation for our efforts are located in basecamp: https://basecamp.com/1892446/projects/841513-release/documents/1015202-staging-tests
Running all lettuce tests
```django-admin.py harvest --settings=lms.envs.acceptance_testing --pythonpath=. --no-server```
Running a single lettuce feature
```django-admin.py harvest --settings=lms.envs.acceptance_testing --pythonpath=. --no-server lms/djangoapps/acceptance_testing/features/homepage.feature```
...@@ -6,6 +6,11 @@ sessions. Assumes structure: ...@@ -6,6 +6,11 @@ sessions. Assumes structure:
/db # This is where it'll write the database file /db # This is where it'll write the database file
/mitx # The location of this repo /mitx # The location of this repo
/log # Where we're going to write log files /log # Where we're going to write log files
AUG 20 2012 [mchang]:
copied from lms.envs.dev
modified to include custom 'acceptance_testing' djangoapp
modified to include lettuce django connection
""" """
from .common import * from .common import *
from .logsettings import get_logger_config from .logsettings import get_logger_config
...@@ -92,8 +97,6 @@ MITX_FEATURES['AUTH_USE_MIT_CERTIFICATES'] = True ...@@ -92,8 +97,6 @@ MITX_FEATURES['AUTH_USE_MIT_CERTIFICATES'] = True
################################ DEBUG TOOLBAR ################################# ################################ DEBUG TOOLBAR #################################
INSTALLED_APPS += ('debug_toolbar',) INSTALLED_APPS += ('debug_toolbar',)
INSTALLED_APPS += ('acceptance_testing',)
INSTALLED_APPS += ('lettuce.django',)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS = ('127.0.0.1',) INTERNAL_IPS = ('127.0.0.1',)
...@@ -129,3 +132,9 @@ FILE_UPLOAD_HANDLERS = ( ...@@ -129,3 +132,9 @@ FILE_UPLOAD_HANDLERS = (
########################### PIPELINE ################################# ########################### PIPELINE #################################
PIPELINE_SASS_ARGUMENTS = '-r {proj_dir}/static/sass/bourbon/lib/bourbon.rb'.format(proj_dir=PROJECT_ROOT) PIPELINE_SASS_ARGUMENTS = '-r {proj_dir}/static/sass/bourbon/lib/bourbon.rb'.format(proj_dir=PROJECT_ROOT)
########################### LETTUCE TESTING ##########################
LETTUCE_APPS = ('acceptance_testing',)
INSTALLED_APPS += ('acceptance_testing',)
INSTALLED_APPS += ('lettuce.django',)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment