0
我有端到端測試使用茉莉和行爲驅動的測試編寫使用chai和黃瓜編寫的測試。我有兩個配置文件來運行這些測試。我如何使用單量角器配置文件來運行茉莉花和黃瓜的規格?量角器配置文件使用茉莉和黃瓜規格
//cucumber.conf.js
exports.config = {
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/e2e/cucumber/*.feature'],
capabilities: {
'browserName': 'firefox',
},
baseUrl: '',
cucumberOpts: {
require: ['test/e2e/cucumber/*.steps.js'],
tags: [],
strict: true,
format: ["pretty"],
dryRun: false,
compiler: []
}
//e2e.conf.js
exports.config = {
framework: 'jasmine2',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['test/e2e/e2e-spec.js'],
capabilities: {
'browserName': 'firefox',
},
baseUrl: '',
jasmineNodeOpts: {
showColors: true,
}
好感謝了很多。我會嘗試這個解決方案。 – Mythri