![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
gulp-peridot
Advanced tools
Peridot is highly extensible, highly enjoyable, BDD testing framework for PHP.
$ npm install --save-dev gulp-peridot
add it to your gulpfile.js
:
var peridot = require('gulp-peridot');
gulp.task('peridot', function () {
return gulp.src('specs') // <= test specs directory
.pipe(peridot('/vendor/bin/peridot', {
filter: 'foo.*.spec.php',
configurationFile: 'bar-config.php'
coverageText: true,
coverageHtml: 'cov-dir',
coverageBlacklist: [ 'libs', 'bar-config.php' ],
coverageWhitelist: []
}));
});
Type: String
The path to the desired Peridot executable.
./vendor/bin/peridot
or $(which peridot)
.Type: Boolean
Do not show report.
Type: Boolean
Executes dry run (doesn't actually execute tests, just echo command that would be executed).
Type: String
Define a path to an peridot configuration file (supply full path and filename).
Need Xdebug and PHP_CodeCoverage.
Type: String
Define a path to HTML code coverage report directory.
Type: String
Define a path to XML code coverage report directory.
Type: String
Define a path to Clover code coverage report file.
Type: String
Define a path to PHP code coverage report file.
Type: String
Define a path to Crap4j code coverage report file.
Type: Boolean
Show code coverage report to stdout.
Type: Array(String)
Add code coverage blacklist file/directory.
Local/global composer and gulp-peridot directories are automatically added to blacklist.
Type: Array(String)
Add code coverage whitelist file/directory.
Type: String
Run tests matching pattern.
Type: Boolean
Use colors in output.
Type: Boolean
Stop execution upon first error or failure.
Type: String
Specify which reporter to use.
gulp.task('peridot', function () {
return gulp.src('specs')
.pipe(peridot('/vendor/bin/peridot', {
reporter: 'face'
}));
});
© 2015 ktty1220
FAQs
Peridot PHP Test framework runner for gulp
We found that gulp-peridot 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.