js_test.yml 3.47 KB
Newer Older
1
---
2
# LMS JavaScript tests (using RequireJS).
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#
#
# To run all the tests and print results to the console:
#
#   js-test-tool run TEST_SUITE --use-firefox
#
# where `TEST_SUITE` is this file.
#
#
# To run the tests in your default browser ("dev mode"):
#
#   js-test-tool dev TEST_SUITE
#

test_suite_name: lms

19
test_runner: jasmine_requirejs
20 21 22 23 24 25 26 27 28 29 30

# Path prepended to source files in the coverage report (optional)
# For example, if the source path
# is "src/source.js" (relative to this YAML file)
# and the prepend path is "base/dir"
# then the coverage report will show
# "base/dir/src/source.js"
prepend_path: lms/static

# Paths to library JavaScript files (optional)
lib_paths:
polesye committed
31
    - xmodule_js/common_static/js/test/i18n.js
32
    - xmodule_js/common_static/coffee/src/ajax_prefix.js
33
    - xmodule_js/common_static/js/src/logger.js
34
    - xmodule_js/common_static/js/vendor/jasmine-jquery.js
polesye committed
35
    - xmodule_js/common_static/js/vendor/jasmine-imagediff.js
36 37
    - xmodule_js/common_static/js/vendor/require.js
    - js/RequireJS-namespace-undefine.js
Diana Huang committed
38
    - xmodule_js/common_static/js/vendor/requirejs/text.js
39 40 41 42
    - xmodule_js/common_static/js/vendor/jquery.min.js
    - xmodule_js/common_static/js/vendor/jquery-ui.min.js
    - xmodule_js/common_static/js/vendor/jquery.cookie.js
    - xmodule_js/common_static/js/vendor/flot/jquery.flot.js
43
    - xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js
44
    - xmodule_js/common_static/js/vendor/URI.min.js
45 46
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js
47
    - xmodule_js/common_static/js/vendor/url.min.js
48
    - xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js
49
    - xmodule_js/common_static/js/xblock
50
    - xmodule_js/common_static/coffee/src/xblock
51
    - coffee/src/instructor_dashboard
52
    - xmodule_js/common_static/js/vendor/sinon-1.7.1.js
53 54 55
    - xmodule_js/src/capa/
    - xmodule_js/src/video/
    - xmodule_js/src/xmodule.js
56
    - xmodule_js/common_static/js/src/
57
    - xmodule_js/common_static/js/vendor/underscore-min.js
58
    - xmodule_js/common_static/js/vendor/underscore.string.min.js
59
    - xmodule_js/common_static/js/vendor/backbone-min.js
60 61 62
    - xmodule_js/common_static/js/vendor/edxnotes/annotator-full.min.js
    - xmodule_js/common_static/js/test/i18n.js
    - xmodule_js/common_static/js/vendor/date.js
63 64 65

# Paths to source JavaScript files
src_paths:
66
    - js
67
    - js/common_helpers
Diana Huang committed
68
    - teams/js
69 70 71

# Paths to spec (test) JavaScript files
spec_paths:
72
    - js/spec
Diana Huang committed
73
    - teams/js/spec
74 75 76 77 78 79 80 81 82 83 84

# Paths to fixture files (optional)
# The fixture path will be set automatically when using jasmine-jquery.
# (https://github.com/velesin/jasmine-jquery)
#
# You can then access fixtures using paths relative to
# the test suite description:
#
#   loadFixtures('path/to/fixture/fixture.html');
#
fixture_paths:
85
    - js/fixtures
86
    - templates/instructor/instructor_dashboard_2
Will Daly committed
87
    - templates/dashboard
88
    - templates/edxnotes
89
    - templates/fields
90 91
    - templates/student_account
    - templates/student_profile
92
    - templates/verify_student
93
    - templates/file-upload.underscore
94
    - templates/components/header
95
    - templates/components/tabbed
96
    - js/fixtures/edxnotes
97 98
    - js/fixtures/search
    - templates/search
99
    - templates/discovery
100

101 102 103
requirejs:
  paths:
    main: js/spec/main
104

105 106 107 108
# Because require.js is responsible for loading all dependencies, we exclude
# all files from being included in <script> tags
exclude_from_page:
    - .*