zoukankan      html  css  js  c++  java
  • Configuration file for test runner.

    Introduction

    Configuration file is written in YAML and is used to tell the test runner which files to load to browser and in which order. By default the JsTestDriver looks for the configuration file in the current directory and with the name jsTestDriver.conf. You can use --config command line option to specify a different file.

    Example:

    server: http://localhost:4224

    load
    :
     
    - src/*.js

    test:
      - src-test/*.js

    exclude:
     - uselessfile.js

    serve:
     - css/main.css

    proxy:
     - {matcher: "*", server: "http://localhost/whatever"}

    plugin:
     - name: "coverage"
       jar: "lib/jstestdriver/coverage.jar"
       module: "com.google.jstestdriver.coverage.CoverageModule"

    timeout: 90

    server:

    Specifies the default location of the server. This value can be overridden with a command line option --server. See CommandLineFlags.

    load:

    List of files to load to browser before the test can be run. We support globing with *. The files are loaded in the same order as specified in the configuration file or alphabetically if using globing.

    You can declare external scripts by adding the http address of the script as a loadedable item.

    test:

    A list of test sources to run.

    exclude:

    Never load this file. Used in conjunction with globing and load. Useful saying load everything except these files.

    serve:

    Load static files (images, css, html) so that they can be accessed on the same domain as jstd.

    proxy:

    Set jstd to behave as proxy. See proxy.

    plugin:

    Load jstd plugin. See plugins.

    timeout:

    Timeout in seconds.

    from:http://code.google.com/p/js-test-driver/wiki/ConfigurationFile

  • 相关阅读:
    eventkeyboardmouse
    代理 IP
    网关 192.168.2.1 114.114.114.114 dns查询
    http ssl
    SSDP 抓包
    抓包登录信息提交
    危险的input 微博的过去
    firstChild.nodeValue
    浏览器控制台
    haproxy 中的http请求和https请求
  • 原文地址:https://www.cnblogs.com/jalenwang/p/2382449.html
Copyright © 2011-2022 走看看