55 lines
1.7 KiB
JavaScript
55 lines
1.7 KiB
JavaScript
// See https://npmjs.org/package/grunt-contrib-testem for more config options
|
|
module.exports = {
|
|
basic: {
|
|
options: {
|
|
parallel: 2,
|
|
framework: 'qunit',
|
|
port: (parseInt(process.env.PORT || 7358, 10) + 1),
|
|
test_page: 'tmp/result/tests/index.html',
|
|
routes: {
|
|
'/tests/tests.js': 'tmp/result/tests/tests.js',
|
|
'/assets/app.js': 'tmp/result/assets/app.js',
|
|
'/assets/templates.js': 'tmp/result/assets/templates.js',
|
|
'/assets/app.css': 'tmp/result/assets/app.css'
|
|
},
|
|
src_files: [
|
|
'tmp/result/**/*.js'
|
|
],
|
|
launch_in_dev: ['PhantomJS', 'Chrome'],
|
|
launch_in_ci: ['PhantomJS', 'Chrome'],
|
|
}
|
|
},
|
|
browsers: {
|
|
options: {
|
|
parallel: 8,
|
|
framework: 'qunit',
|
|
port: (parseInt(process.env.PORT || 7358, 10) + 1),
|
|
test_page: 'tmp/result/tests/index.html',
|
|
routes: {
|
|
'/tests/tests.js': 'tmp/result/tests/tests.js',
|
|
'/assets/app.js': 'tmp/result/assets/app.js',
|
|
'/assets/templates.js': 'tmp/result/assets/templates.js',
|
|
'/assets/app.css': 'tmp/result/assets/app.css'
|
|
},
|
|
src_files: [
|
|
'tmp/result/**/*.js'
|
|
],
|
|
launch_in_dev: ['PhantomJS',
|
|
'Chrome',
|
|
'ChromeCanary',
|
|
'Firefox',
|
|
'Safari',
|
|
'IE7',
|
|
'IE8',
|
|
'IE9'],
|
|
launch_in_ci: ['PhantomJS',
|
|
'Chrome',
|
|
'ChromeCanary',
|
|
'Firefox',
|
|
'Safari',
|
|
'IE7',
|
|
'IE8',
|
|
'IE9'],
|
|
}
|
|
}
|
|
};
|