私は分度器で新しいテストをしていますが、私はテストを実行できません。 マイprotractor.config.js:ジャスミン分度器を使ったe2e testin "仕様が見つかりません"
exports.config = {
allScriptsTimeout: 99999,
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance.
capabilities: {
browserName: 'chrome'
},
baseUrl: 'http://localhost:8080/',
framework: 'jasmine',
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['.src/test/e2e/login.e2e.spec.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
isVerbose: true,
includeStackTrace: true
}
};
、これは私が実行しようとしているテストです:
'use strict';
describe('my app', function() {
beforeEach(function() {
browser.get('index.html');
});
it('should automatically redirect to/when location hash is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/");
});
});
そして、これは私が取得エラーです:
I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[13:20:49] I/launcher - Running 1 instances of WebDriver
Started
No specs found
Finished in 0.001 seconds
[13:20:50] I/launcher - 0 instance(s) of WebDriver still running
[13:20:50] I/launcher - chrome #01 passed
[13:20:50] The following tasks did not complete: e2e
[13:20:50] Did you forget to signal async completion?
私はwebdriver-managerと私のアプリケーションサーバーを実行しています。私のジャスミンのバージョンは:2.5.2 と私の分度器のバージョンは: 4.0.9
私は間違って何をしているのアイデア?
ありがとうございました!
おそらく、仕様に指定したファイルパスが正しくないことを意味します。どのコマンドを使ってテストを実行していますか? – Gunderson
テストフォルダツリーはどのように見えますか? – stsatlantis
こんにちは! gulpタスクを使用しています: function e2e(){ gulp.src(["./ src/tests/*。js"])パイプ(分度器({ configFile: "conf/protractor.config。 ( 'error'、function(e){ throw e; });}}; } –