js_test.yml 4.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
---
# JavaScript test suite description
#
#
# 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: cms

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: cms/static

# Paths to library JavaScript files (optional)
lib_paths:
31
    - xmodule_js/common_static/js/vendor/require.js
32
    - xmodule_js/common_static/coffee/src/ajax_prefix.js
33
    - xmodule_js/common_static/js/src/utility.js
34 35 36
    - 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
37
    - xmodule_js/common_static/js/vendor/jquery.simulate.js
38 39 40 41
    - xmodule_js/common_static/js/vendor/underscore-min.js
    - xmodule_js/common_static/js/vendor/underscore.string.min.js
    - xmodule_js/common_static/js/vendor/backbone-min.js
    - xmodule_js/common_static/js/vendor/backbone-associations-min.js
42
    - xmodule_js/common_static/js/vendor/backbone.paginator.min.js
43
    - xmodule_js/common_static/js/vendor/backbone-relational.min.js
44 45
    - xmodule_js/common_static/js/vendor/timepicker/jquery.timepicker.js
    - xmodule_js/common_static/js/vendor/jquery.leanModal.min.js
46
    - xmodule_js/common_static/js/vendor/jquery.ajaxQueue.js
47
    - xmodule_js/common_static/js/vendor/jquery.form.js
48
    - xmodule_js/common_static/js/vendor/html5-input-polyfills/number-polyfill.js
49
    - xmodule_js/common_static/js/vendor/sinon-1.17.0.js
50
    - xmodule_js/common_static/js/vendor/Squire.js
51 52
    - xmodule_js/common_static/js/vendor/jasmine-jquery.js
    - xmodule_js/common_static/js/vendor/jasmine-stealth.js
polesye committed
53
    - xmodule_js/common_static/js/vendor/jasmine-imagediff.js
54
    - xmodule_js/common_static/js/vendor/jasmine.async.js
55
    - xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js
56
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js
57
    - xmodule_js/src/xmodule.js
58
    - xmodule_js/common_static/js/test/i18n.js
59
    - xmodule_js/common_static/js/vendor/draggabilly.pkgd.js
60 61
    - xmodule_js/common_static/js/vendor/date.js
    - xmodule_js/common_static/js/vendor/domReady.js
62
    - xmodule_js/common_static/js/vendor/URI.min.js
63
    - xmodule_js/common_static/js/vendor/jquery.smooth-scroll.min.js
64
    - xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js
65
    - xmodule_js/common_static/js/xblock/
66
    - xmodule_js/common_static/coffee/src/xblock/
Jim committed
67 68 69 70
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-process.js
    - xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-validate.js
71
    - xmodule_js/common_static/js/vendor/mock-ajax.js
72
    - xmodule_js/common_static/js/vendor/requirejs/text.js
73 74 75 76 77

# Paths to source JavaScript files
src_paths:
    - coffee/src
    - js
78
    - js/certificates
79 80
    - js/factories
    - common/js
81 82

# Paths to spec (test) JavaScript files
83
# We should define the custom path mapping in /coffee/spec/main.coffee as well e.g. certificates etc.
84
spec_paths:
85
    - coffee/spec/main.js
86
    - coffee/spec
87
    - js/spec
88
    - js/certificates/spec
89 90 91 92 93 94 95 96 97 98 99 100

# 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:
    - coffee/fixtures
101 102
    - templates
    - common/templates
103

104 105 106
requirejs:
  paths:
    main: coffee/spec/main
107

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