加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
karma.conf.js 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
/**
* @author botime / https://github.com/botime
*/
// puppeteer will download Chromium during
process.env.CHROME_BIN = require('puppeteer').executablePath();
let isCI = typeof process.env.CI !== 'undefined' &&
(process.env.CI.toLowerCase() == 'true');
let browser = isCI ? 'ChromeHeadless' : 'Chrome';
module.exports = function(config) {
config.set({
browsers: [browser],
captureTimeout: 120000,
reportSlowerThan: 500,
browserNoActivityTimeout: 180000,
frameworks: ['jasmine'],
client: {
useIframe: false,
runInParent: false,
captureConsole: true
},
reporters: [ 'spec' ],
files: [
{ pattern: 'test/lib/three.min.js', included: true },
{ pattern: 'test/lib/stats.min.js', included: false, served: false },
{ pattern: 'test/lib/tween.min.js', included: true },
{ pattern: 'test/lib/TrackballControls.js', included: true },
{ pattern: 'test/lib/tf.min.js', included: true },
{ pattern: 'build/tensorspace.min.js', included: true },
{ pattern: 'build/tensorspace.min.js.map', included: false, served: true },
{ pattern: 'test/e2e/template.html', included: true },
{ pattern: 'test/e2e/*', included: true, watch: true },
],
preprocessors: {
'test/e2e/*.html': ['html2js']
},
logLevel: 'debug',
autoWatch: false
})
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化