Commit 2aa65b65 by Ben Patterson

Merge pull request #2590 from edx/benp/break-out-tests

Break out tests in test_build_server role for more-useful feedback for users.
parents 4bfb831a ae8355f0
......@@ -20,28 +20,47 @@ cd edx-platform-clone
# tests because TEST_SUITE isn't defined.
source scripts/jenkins-common.sh
# Now we can run a subset of the tests via paver.
# Run some of the common/lib unit tests
paver test_lib -t common/lib/xmodule/xmodule/tests/test_stringify.py
case "$1" in
"unit")
# Generate some coverage reports
paver coverage
# Now we can run a subset of the tests via paver.
# Run some of the common/lib unit tests
paver test_lib -t common/lib/xmodule/xmodule/tests/test_stringify.py
# Run some of the djangoapp unit tests
paver test_system -t lms/djangoapps/courseware/tests/tests.py
paver test_system -t cms/djangoapps/course_creators/tests/test_views.py
# Generate some coverage reports
paver coverage
# Run some of the javascript unit tests
paver test_js_run -s xmodule
# Run some of the djangoapp unit tests
paver test_system -t lms/djangoapps/courseware/tests/tests.py
paver test_system -t cms/djangoapps/course_creators/tests/test_views.py
;;
# Run some of the bok-choy tests
paver test_bokchoy -t discussion/test_discussion.py:DiscussionTabSingleThreadTest
paver test_bokchoy -t studio/test_studio_outline.py:WarningMessagesTest.test_unreleased_published_locked --fasttest
paver test_bokchoy -t lms/test_lms_matlab_problem.py:MatlabProblemTest --fasttest
"js")
# Run some of the lettuce acceptance tests
paver test_acceptance -s lms --extra_args="lms/djangoapps/courseware/features/problems.feature -s 1"
paver test_acceptance -s cms --extra_args="cms/djangoapps/contentstore/features/html-editor.feature -s 1"
# Run some of the javascript unit tests
paver test_js_run -s xmodule
;;
# Generate quality reports
paver run_quality
"bokchoy")
# Run some of the bok-choy tests
paver test_bokchoy -t discussion/test_discussion.py:DiscussionTabSingleThreadTest
paver test_bokchoy -t studio/test_studio_outline.py:WarningMessagesTest.test_unreleased_published_locked --fasttest
paver test_bokchoy -t lms/test_lms_matlab_problem.py:MatlabProblemTest --fasttest
;;
"lettuce")
# Run some of the lettuce acceptance tests
paver test_acceptance -s lms --extra_args="lms/djangoapps/courseware/features/problems.feature -s 1"
paver test_acceptance -s cms --extra_args="cms/djangoapps/contentstore/features/html-editor.feature -s 1" --fasttest
;;
"quality")
# Generate quality reports
paver run_quality
;;
*)
echo "args required"
exit 1
esac
......@@ -37,7 +37,13 @@
mode=0755
- name: Validate build environment
shell: "bash test-development-environment.sh"
shell: "bash test-development-environment.sh {{ item }}"
args:
chdir: "{{ test_build_server_repo_path }}/"
sudo_user: "{{ test_build_server_user }}"
with_items:
- "unit"
- "js"
- "bokchoy"
- "lettuce"
- "quality"
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