js_test.yml 2.63 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
---
# 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: lms

test_runner: jasmine

# 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:
    - xmodule_js/common_static/coffee/src/ajax_prefix.js
    - xmodule_js/common_static/coffee/src/logger.js
33
    - xmodule_js/common_static/js/vendor/jasmine-jquery.js
polesye committed
34
    - xmodule_js/common_static/js/vendor/jasmine-imagediff.js
35 36
    - xmodule_js/common_static/js/vendor/require.js
    - js/RequireJS-namespace-undefine.js
37 38 39 40
    - 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
41
    - xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js
42 43
    - xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js
    - xmodule_js/common_static/coffee/src/xblock
44 45 46
    - xmodule_js/src/capa/
    - xmodule_js/src/video/
    - xmodule_js/src/xmodule.js
47 48 49 50

# Paths to source JavaScript files
src_paths:
    - coffee/src
51
    - js/src
52 53 54 55

# Paths to spec (test) JavaScript files
spec_paths:
    - coffee/spec
56
    - js/spec
57 58 59 60 61 62 63 64 65 66 67 68

# 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
69
    - js/fixtures
70 71 72 73 74

# Regular expressions used to exclude *.js files from
# appearing in the test runner page.
# Files are included by default, which means that they
# are loaded using a <script> tag in the test runner page.
75
# When loading many files, this can be slow, so
76 77 78 79 80 81 82 83 84 85 86
# exclude any files you don't need.
#exclude_from_page:
#    - path/to/lib/exclude/*

# Regular expression used to guarantee that a *.js file
# is included in the test runner page.
# If a file name matches both `exclude_from_page` and
# `include_in_page`, the file WILL be included.
# You can use this to exclude all files in a directory,
# but make an exception for particular files.
#include_in_page:
87
#    - path/to/lib/include/*