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