Lvbo163 | f721b1a | 2017-08-23 17:27:33 +0800 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2017 ZTE Corporation. |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * and the Apache License 2.0 which both accompany this distribution, |
| 6 | * and are available at http://www.eclipse.org/legal/epl-v10.html |
| 7 | * and http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Contributors: |
| 10 | * ZTE - initial API and implementation and/or initial documentation |
| 11 | */ |
| 12 | |
| 13 | // Protractor configuration file, see link for more information |
| 14 | // https://github.com/angular/protractor/blob/master/lib/config.ts |
| 15 | |
| 16 | const { SpecReporter } = require('jasmine-spec-reporter'); |
| 17 | |
| 18 | exports.config = { |
| 19 | allScriptsTimeout: 11000, |
| 20 | specs: [ |
| 21 | './e2e/**/*.e2e-spec.ts' |
| 22 | ], |
| 23 | capabilities: { |
| 24 | 'browserName': 'chrome' |
| 25 | }, |
| 26 | directConnect: true, |
| 27 | baseUrl: 'http://localhost:4200/', |
| 28 | framework: 'jasmine', |
| 29 | jasmineNodeOpts: { |
| 30 | showColors: true, |
| 31 | defaultTimeoutInterval: 30000, |
| 32 | print: function() {} |
| 33 | }, |
| 34 | onPrepare() { |
| 35 | require('ts-node').register({ |
| 36 | project: 'e2e/tsconfig.e2e.json' |
| 37 | }); |
| 38 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); |
| 39 | } |
| 40 | }; |