test: execute router tests on .`/test.sh browser` (#10053)
This commit is contained in:
parent
a441b5b8fe
commit
31a7709ece
|
@ -38,6 +38,7 @@ module.exports = function(config) {
|
|||
exclude: [
|
||||
'dist/all/@angular/**/e2e_test/**',
|
||||
'dist/all/@angular/examples/**',
|
||||
'dist/all/@angular/router/**',
|
||||
'dist/all/@angular/compiler-cli/**',
|
||||
'dist/all/angular1_router.js',
|
||||
'dist/all/@angular/platform-browser/testing/e2e_util.js'
|
||||
|
|
|
@ -77,5 +77,5 @@ module.exports = function(config) {
|
|||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
singleRun: false
|
||||
})
|
||||
});
|
||||
};
|
|
@ -30,7 +30,6 @@
|
|||
"rollup-test",
|
||||
"upgrade-ts2dart.d.ts",
|
||||
"zone-ts2dart.d.ts",
|
||||
"@angular/compiler-cli/integrationtest",
|
||||
"@angular/router"
|
||||
"@angular/compiler-cli/integrationtest"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -79,9 +79,20 @@ if (platform == 'node') {
|
|||
start: 'File change detected. Starting incremental compilation...',
|
||||
error: 'error',
|
||||
complete: 'Compilation complete. Watching for file changes.',
|
||||
onStartCmds:
|
||||
[['node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', 'karma-js.conf.js']],
|
||||
onChangeCmds: [['node', 'node_modules/karma/bin/karma', 'run', 'karma-js.conf.js']]
|
||||
onStartCmds: [
|
||||
[
|
||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9876',
|
||||
'karma-js.conf.js'
|
||||
],
|
||||
[
|
||||
'node', 'node_modules/karma/bin/karma', 'start', '--no-auto-watch', '--port=9877',
|
||||
'modules/@angular/router/karma.conf.js'
|
||||
],
|
||||
],
|
||||
onChangeCmds: [
|
||||
['node', 'node_modules/karma/bin/karma', 'run', 'karma-js.conf.js', '--port=9876'],
|
||||
['node', 'node_modules/karma/bin/karma', 'run', '--port=9877'],
|
||||
]
|
||||
});
|
||||
} else if (platform == 'tools') {
|
||||
tscWatch = new TscWatch({
|
||||
|
@ -93,6 +104,8 @@ if (platform == 'node') {
|
|||
'node', 'dist/tools/cjs-jasmine/index-tools', '--', '@angular/tsc-wrapped/**/*{_,.}spec.js'
|
||||
]]
|
||||
});
|
||||
} else {
|
||||
throw new Error(`unknown platform: ${platform}`);
|
||||
}
|
||||
|
||||
if (runMode === 'watch') {
|
||||
|
|
Loading…
Reference in New Issue