博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Configuration file for test runner.
阅读量:5937 次
发布时间:2019-06-19

本文共 1532 字,大约阅读时间需要 5 分钟。

 

Introduction

Configuration file is written in 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 .

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 .

plugin:

Load jstd plugin. See .

timeout:

Timeout in seconds.

from:

转载于:https://www.cnblogs.com/jalenwang/archive/2012/03/06/2382449.html

你可能感兴趣的文章
我的友情链接
查看>>
【MYSQL】SQL基本写法
查看>>
chmod 777 修改权限 - [Linux相关]
查看>>
服务器性能优化配置建议
查看>>
物理网卡在ESXi/ESX服务器中的推荐配置方式
查看>>
实战浪潮英信服务器web部署操作过程(3)
查看>>
Spring 定时任务实现 以及无法正常执行分析
查看>>
Linux基础(11)文本处理三剑客之sed
查看>>
bash命令行快捷键整理
查看>>
Zabbix3.2.6之通过JMX监控Tomcat
查看>>
2013美赛建模算法关键词
查看>>
Android-Parcelable理解与使用(对象序列化)
查看>>
数据结构----图(邻接表用法)
查看>>
批量扫描雏形之在Java中调用nmap进行主机探测
查看>>
我的友情链接
查看>>
SVN命令详解
查看>>
Windows的资源监视器
查看>>
Android图形解锁的绘制
查看>>
UML基础系列:类图
查看>>
学习日志---树回归(回归树,模型树)
查看>>