2 Star 5 Fork 2

Yume_Maruyama/MUSE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
karma.conf.js 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
const webpackCfg = require('./webpack.config'),
fs = require('fs'),
path = require('path');
// Set node environment to testing
process.env.NODE_ENV = 'test';
module.exports = function(config) {
config.set({
basePath: '',
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--headless',
'--disable-gpu',
'--remote-debugging-port=23366'
]
}
},
files: ['test/loadtests.js'],
port: 8000,
captureTimeout: 60000,
frameworks: ['mocha', 'chai'],
client: {
mocha: {}
},
singleRun: true,
reporters: ['mocha', 'coverage'],
preprocessors: {
'test/loadtests.js': ['webpack', 'sourcemap']
},
webpack: webpackCfg,
webpackServer: {
noInfo: true
},
coverageReporter: {
// specify a common output directory
dir: path.join(__dirname, 'coverage'),
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' },
{ type: 'text' }
]
}
});
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/kirainmoe/YmPlayer.git
git@gitee.com:kirainmoe/YmPlayer.git
kirainmoe
YmPlayer
MUSE
master

搜索帮助