Skip to content

Commit

Permalink
~ travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Jun 5, 2018
1 parent 9b836ad commit 7e8de92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml
@@ -1 +0,0 @@
repo_token: 1TrDZbh3qxdd9GfnYYq1r1Yiv6vr2vRyX
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 4.0
- 6.0
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
Expand Down
9 changes: 5 additions & 4 deletions karma.conf.js
Expand Up @@ -2,6 +2,7 @@
* karma 测试配置文件
* @author ydr.me
* @create 2016-04-20 21:15
* @update 2017年11月30日14:56:48
*/


Expand Down Expand Up @@ -68,12 +69,12 @@ module.exports = function (config) {
included: false
},
{
// 加载 src 下的原始文件,但不直接引入,使用模块加载器引入
pattern: './test/test.**',
// 加载 test 下的单元测试文件,但不直接引入,使用模块加载器引入
pattern: './test/**/test.*.js',
included: false
},
{
// 加载 test 下的入口文件,但不直接引入,使用模块加载器引入
// 加载 test 下的入口文件,直接引入
pattern: './test/main.js',
included: true
}
Expand All @@ -89,7 +90,7 @@ module.exports = function (config) {
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
// 原始模块,需要测试覆盖率
'./src/index.js': ['coverage']
'./src/**/*.js': ['coverage']
},


Expand Down

0 comments on commit 7e8de92

Please sign in to comment.