在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):DevExpress/gulp-testcafe开源软件地址(OpenSource Url):https://github.com/DevExpress/gulp-testcafe开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-testcafeRun TestCafe tests using Gulp. Installnpm install --save-dev gulp-testcafe Usageconst gulp = require('gulp');
const testcafe = require('gulp-testcafe');
gulp.task('default', () => {
return gulp.src('test.js')
.pipe(testcafe({ browsers: ['chrome', 'firefox'] }));
}); APItestcafe(options) OptionsbrowsersType: Default: Details: Specifying Browsers for Test Task Required Configures the test runner to run tests in the specified browsers. reporterType: Default: Details: Reporters Specifies the reporter or an array of reporters. Reporter can be specified by reporter name, or an object with following properties:
Examples: "reporter": "minimal" "reporter": { "name": "json", "output": "report.json" } "reporter": { "name": "xunit", "output": fs.createWriteStream("report.xml") } "reporter": ["spec", { "name": "xunit", "output": fs.createWriteStream("report.xml") }] filterType: Default: Details: runner.filter Allows you to manually select which tests should be run. screenshotsPathType: Default: Details: Screenshots path The path to which the screenshots will be saved. Enables the test runner to take screenshots of the tested webpages. takeScreenshotsOnFailType: Default: Details: Take screenshots on fail Specifies if screenshots should be taken automatically whenever a test fails. Requires that the screenshotsPath is set. skipJsErrorsType: Default: Details: Skip JS errors Defines whether to continue running a test after a JavaScript error occurs on a page ( quarantineModeType: Default: Defines whether to enable the quarantine mode. selectorTimeoutType: Default: Details: Selector timeout Specifies the amount of time, in milliseconds, within which selectors make attempts to obtain a node to be returned. AuthorDeveloper Express Inc. (https://devexpress.com) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论