Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
a216886c
Commit
a216886c
authored
Dec 12, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
break out tests for build-server verification.
parent
62261e30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
20 deletions
+44
-20
playbooks/roles/test_build_server/files/test-development-environment.sh
+37
-19
playbooks/roles/test_build_server/tasks/main.yml
+7
-1
No files found.
playbooks/roles/test_build_server/files/test-development-environment.sh
100644 → 100755
View file @
a216886c
...
...
@@ -20,28 +20,46 @@ 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
;;
"js"
)
# 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
# Run some of the javascript unit tests
paver test_js_run
-s
xmodule
;;
# 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"
"bokchoy"
)
# Generate quality reports
paver run_quality
# 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"
;;
"quality"
)
# Generate quality reports
paver run_quality
;;
*
)
echo
"args required"
exit
1
esac
playbooks/roles/test_build_server/tasks/main.yml
View file @
a216886c
...
...
@@ -35,7 +35,13 @@
sudo_user
:
"
{{
test_build_server_user
}}"
-
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment