
Security News
Node.js TSC Declines to Endorse Feature Bounty Program
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
gulp plugin for wedriver.io with built-in selenium and browserstack support
Same as gulp-webdriver with three key differences:
So you could just simple do –
const wdio = require('gulp-wdio');
gulp.task('e2e', () => {
return gulp.src('path/to/wdio.conf.js').pipe(wdio({
// Omit "type" property if you want start wdio without additional layers
type: 'selenium', // or "browserstack"
wdio: {} // Same arguments as with `wdio --help`
}));
});
Instead of something like this (taken from gulp-webdriver
test script) –
// For local selenium
import gulp from 'gulp'
import selenium from 'selenium-standalone'
import webdriver from '../lib/index'
export default options => {
let errorLog = options.errorHandler('Selenium start')
gulp.task('selenium:start', done => {
selenium.install({
logger (message) {
process.stdout.write(`${message} \n`)
},
progressCb: (totalLength, progressLength) => {
process.stdout.write(`Downloading drivers ${Math.round(progressLength / totalLength * 100)}% \r`)
}
}, err => {
if (err) return done(err)
selenium.start({
spawnOptions: {
stdio: 'ignore'
}
}, (err, child) => {
selenium.child = child
errorLog(err)
done()
})
})
})
gulp.task('test', ['selenium:start'], () => {
return gulp.src(`${options.test}/wdio.*`)
.pipe(webdriver({
logLevel: 'verbose',
waitforTimeout: 12345,
framework: 'mocha',
// only for testing purposes
cucumberOpts: {
require: 'nothing'
}
})).once('end', () => {
selenium.child.kill()
})
})
}
FAQs
gulp plugin for wedriver.io with built-in selenium and browserstack support
We found that gulp-wdio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.