js_test.yml 2.17 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
---
# 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: common

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

# Paths to library JavaScript files (optional)
lib_paths:
    - js/vendor/jquery.min.js
32
    - js/vendor/jasmine-jquery.js
polesye committed
33
    - js/vendor/jasmine-imagediff.js
34
    - js/vendor/mustache.js
35 36 37
    - js/vendor/underscore-min.js
    - js/vendor/backbone-min.js
    - js/vendor/jquery.timeago.js
38
    - js/vendor/URI.min.js
39
    - coffee/src/ajax_prefix.js
40
    - js/test/add_ajax_prefix.js
41
    - js/test/i18n.js
42
    - coffee/src/jquery.immediateDescendents.js
43 44 45 46

# Paths to source JavaScript files
src_paths:
    - coffee/src
47
    - js/src
48
    - js/capa/src
49 50 51 52

# Paths to spec (test) JavaScript files
spec_paths:
    - coffee/spec
53
    - js/spec
54
    - js/capa/spec
55 56 57 58 59

# 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.
60
# When loading many files, this can be slow, so
61 62
# exclude any files you don't need.
#exclude_from_page:
63
#    - path/to/lib/include/exception_*.js
64 65 66 67 68 69 70 71 72 73 74 75 76 77

# 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:
#    - path/to/lib/exclude/exception_*.js

# Paths to fixture files (optional)
# You can access these within JavaScript code
# at the URL: document.location.href + "/include/"
# plus the path to the file (relative to this YAML file)
78 79
fixture_paths:
    - js/fixtures
80
    - js/capa/fixtures
81